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

OPERANDS    0 . constant . 7

EXECUTION   (PC) + 1 . PC
            (ARP) . ARB
            Constant . ARP
            Affects ARP and ARB.

DESCRIPTION The auxiliary register pointer is loaded with the contents of
            the three LSB's of the instruction identifying the desired
            auxiliary register as a 3-bit constant. The old ARP is copied
            to the ARB field of status register ST1. ARP can also be
            modified by the LST, LST1, and MAR instructions, as well as
            any instruction that is used in the indirect addressing mode.

            The LARP instruction is a subset of MAR; i.e., the opcode is
            the same as MAR in the indirect addressing mode. The following
            instruction has the same affect as LARP:

                                    MAR *,<constant>

WORDS       1

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

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   |   n   |   n   |  n+p  |  n+p   |   -   |   -   |
            |-------+-------+-------+--------+-------+-------|
     'C25   |   n   |   n   |  n+p  |  n+p   |   n   |   n   |
            +------------------------------------------------+



EXAMPLE     LARP  1           Any succeeding instructions will use
                              auxiliary register AR1 for indirect
                              addressing.

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