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

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

EXECUTION   (PC) + 1 . PC
            Nine LSB's of (dma) . data page pointer register (DP)
            status bits
            Affects DP.

DESCRIPTION The nine LSB's of the contents of the addressed data memory
            location are loaded into the DP (data memory page pointer)
            register. The DP and 7-bit data memory address are
            concatenated to form a 16-bit data memory addresses. The DP
            may also be loaded by the LST and LDPK instructions.

WORDS       1

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



EXAMPLE     LDP   DAT127      (DP = 511)
            or
            LDP   *           If current auxiliary register contains
                              65535.

                   BEFORE             AFTER

            dm65535 >FEDC     dm65535 >FEDC
                 DP  >1FF          DP   >DC

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