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 [<label>] ldpk <constant> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
SYNTAX      [<LABEL>] LDPK <constant>

OPERANDS    0 . constant . 511

EXECUTION   (PC) + 1 . PC
            Constant . data memory page pointer (DP) status bits
            Affects DP.

DESCRIPTION The DP (data memory page pointer) register is loaded with a
            9-bit constant. The DP and 7-bit data memory address are
            concatenated to form a 16-bit direct data memory addresses.
            DP . 8 specifies external data memory. DP = 4 through 7
            specifies on-chip RAM blocks B0 or B1. Block B2 is located in
            the upper 32 words of page 0. DP may also be loaded by the LST
            and LDP instructions.

WORDS       1

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

CYCLES

            +------------------------------------------------+
            |    Cycle Timings for a Single Instruction      |
            |------------------------------------------------|
            | PI/DI | PI/DE | PE/DI | PE/DE  | PR/DI | PR/DE |
            |-------+-------+-------+--------+-------+-------|
      '20   |   1   |   1   |  1+p  |  1+p   |   -   |   -   |
            |-------+-------+-------+--------+-------+-------|
     'C25   |   1   |   1   |  1+p  |  1+p   |   1   |   1   |
            |------------------------------------------------|
            |    Cycle Timings for a Repeat Instruction      |
            |------------------------------------------------|
      '20   |          not repeatable        |   -   |   -   |
            |------------------------------------------------|
     'C25   |                not repeatable                  |
            +------------------------------------------------+



EXAMPLE     LDPK  64          The data page pointer is set to 64.

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