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

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

EXECUTION   (PC) + 1 . PC
            (PR shifter output (15-0)) . dma
            Affected by PM.

DESCRIPTION The low-order bits of the P register, shifted as specified by
            the PM bits, are stored in data memory. Neither the P register
            nor the accumulator are affected by this instruction. High-
            order bits are taken from the high P register when the right-
            shift by 6 mode is selected. Low order bits are zero-filled
            when left-shifts are selected.

WORDS       1

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

            15 14 13 12 11 10  9  8  7  6  5  4  3  2  1  0
            +-----------------------------------------------+
            |0  1  1  1  1  1  0  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   |  1+d  |  1+p  | 2+d+p  |   1   |  1+d  |
            |------------------------------------------------|
            |     Cycle Timings for a Repeat Instruction     |
            |------------------------------------------------|
      'C25  |   n   |  n+nd |  n+p  |1+n+nd+p|   n   | n+nd  |
            +------------------------------------------------+



EXAMPLE     SPL   DAT3        (DP = 4, PM = 2)
            or
            SPL   *           If current auxiliary register contains 515.

                     BEFORE               AFTER

                P >FE079844         P >FE079844
            dm515     >4567     dm515     >8440

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