Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- TMS320C2x DSP - syntax direct [<label>] mpyu <dma> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
SYNTAX      DIRECT   [<LABEL>] MPYU <dma>
            INDIRECT [<LABEL>] MPYU {ind}[,<next ARP>]

OPERANDS    0 . dma . 127; 0 . next ARP . 7.

EXECUTION   (PC) + 1 . PC
            Unsigned (T register) * unsigned (dma) . P register

DESCRIPTION The unsigned contents of the T register are multiplied by the
            unsigned contents of the addressed data memory location. The
            result is placed in the P register. Note that the multiplier
            acts as a 17 by 17-bit signed multiplier for this instruction,
            with the MSB of both operands forced to zero.

            The shifter at the output of the P register will always invoke
            sign-extension on the P register when PM = 3 (right-shifted
            by 6 mode). Therefore, this shift mode should not be used if
            unsigned products are desired.

            The MPYU instruction is particularly useful for computing
            multiple-precision products, such as when multiplying two 32-
            bit numbers to yield a 64-bit product.

WORDS       1

ENCODING    15 14 13 12 11 10  9  8  7  6  5  4  3  2  1  0
            +-----------------------------------------------+
            |1  1  0  0  1  1  1  1| 0| data memory address | DIRECT
            +-----------------------------------------------+

            15 14 13 12 11 10  9  8  7  6  5  4  3  2  1  0
            +-----------------------------------------------+
            |1  1  0  0  1  1  1  1| 1| see indirect fields | INDIRECT
            +-----------------------------------------------+

CYCLES

            +------------------------------------------------+
            |    Cycle Timings for a Single Instruction      |
            |------------------------------------------------|
            | PI/DI | PI/DE | PE/DI | PE/DE  | PR/DI | PR/DE |
            |-------+-------+-------+--------+-------+-------|
     'C25   |   1   |  2+d  |  1+p  | 2+d+p  |   1   |  2+d  |
            |------------------------------------------------|
            |    Cycle Timings for a Repeat Instruction      |
            |------------------------------------------------|
     'C25   |   n   | 1+n+nd|  n+p  |1+n+nd+p|   n   |1+n+nd |
            +------------------------------------------------+



EXAMPLE     MPYU  DAT16       (DP = 4)
            or
            MPYU  *           If current auxiliary register contains 528

                BEFORE                  AFTER

             dm528 >FFFF      dm528     >FFFF
                 T >FFFF          T     >FFFF
                 P    >1          P >FFFE0001

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson