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

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

EXECUTION   (PC) + 1 . PC
            >8000 . ACC(15-0)
            (dma) . ACC(31-16)

DESCRIPTION The ZALR instruction loads a data memory value into the high-
            order half of the accumulator with rounding the value by
            adding 1/2 LSB; i.e., the 15 low bits (bits 0-14) of the
            accumulator are set to zero and bit 15 of the accumulator is
            set to one.

            ZALR is a derivative instruction from ZALH.

WORDS       1

ENCODING    15 14 13 12 11 10  9  8  7  6  5  4  3  2  1  0
            +-----------------------------------------------+
            |0  1  1  1  1  0  1  1| 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  0  1  1| 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     ZALR  DAT3        (DP = 32)
            or
            ZALR  *           If current auxiliary register contains 4099.

                    BEFORE                AFTER

            dm4099   >3F01     dm4099     >3F01
             ACC X >77FFFF      ACC X >3F018000
                 C                  C

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