Texas Instruments TMS320C28x Reference Manual page 325

Dsp cpu and instruction set
Table of Contents

Advertisement

MOV loc16, ARn
MOV loc16, ARn
SYNTAX OPTIONS
MOV loc16, ARn
Operands
loc16
ARn
Description
Flags and
N
Modes
Z
Repeat
Example
MOV
MOV
MOV
MOV
MOV
6-168
0111 1nnn LLLL LLLL
Addressing mode (see Chapter 5)
AR0 to AR7, lower 16 bits of auxiliary registers
Load the contents of the 16-bit location with ARn:
[loc16] = ARn;
If(loc16 = @ARn), then only the lower 16 bits of the selected auxiliary register
is modified. The upper 16 bits is unchanged.
If (loc16 = @AX), then the load to AX is tested for a negative condition. Bit-15
of the AX register is the sign bit, 0 for positive, 1 for negative. The negative
flag bit is set if the operation on the AX register generates a negative value,
otherwise it is cleared.
If (loc16 = @AX), then the load to AX is tested for a zero condition. The bit is
set if the result of the operation on the AX register generates a 0 value,
otherwise it is cleared
This instruction is repeatable. If the operation is follows a RPT instruction,
then it will be executed N+1 times.
@AL, AR3
@AR4,AR3
*SP++,AR3
*XAR4++,AR4
*−−XAR5,AR5
Store 16-bit Auxiliary Register
OPCODE
; Load AL with the 16-bit contents of
; AR3. If bit 15 of AL is 1, set the
; N flag, else clear it.
; If AL is 0, set the Z flag.
; Load AR4 with the value in AR3.
; Upper 16 bits of XAR4 are
; unchanged.
; Push the contents of AR3 onto the
; stack. Post increment SP.
; Store contents of AR4 into location
; specified by XAR4. Post-increment
; the contents of XAR4.
; Pre-decrement the contents of XAR5.
; Store the contents of AR5 into the
; location specified by XAR5.
OBJMODE
RPT
CYC
X
1

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the TMS320C28x and is the answer not in the manual?

Table of Contents

Save PDF