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>] mpya <dma> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
SYNTAX      DIRECT   [<LABEL>] MPYA <dma>
            INDIRECT [<LABEL>] MPYA {ind}[,<next ARP>]

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

EXECUTION   (PC) + 1 . PC
            (ACC) + (shifted P register) . ACC
            (T register) * (dma) . P register
            Affects C and OV; affected by OVM and PM.

DESCRIPTION The contents of the T register are multiplied by the contents
            of the addressed data memory location. The result is placed
            in the P register. The previous product, shifted as defined
            by the PM status bits, is also added to the accumulator.

WORDS       1

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

            15 14 13 12 11 10  9  8  7  6  5  4  3  2  1  0
            +-----------------------------------------------+
            |0  0  1  1  1  0  1  0| 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     MPYA  DAT13       (DP = 6, PM = 0)
            or
            MPYA  *           If current auxiliary register contains 781.

                BEFORE             AFTER

             dm781  >7         dm781  >7
                 T  >6             T  >6
                 P >36             P >2A
             ACC X >54         ACC 0 >8A
                 C                 C

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