Motorola DSP56800 Manual page 347

16-bit digital signal processor
Table of Contents

Advertisement

MOVE(C)
Example:
MOVE(C)
Before Execution
LC
X0
Explanation of Example:
Execution of the MOVE(C) instruction moves the contents of the program controller's 16-bit LC reg-
ister into the data ALU's 16-bit X0 register.
Example:
MOVE(C)
Before Execution
X:$CC00
Explanation of Example:
Execution of the MOVE(C) instruction moves the contents of the X data memory at location $CC00
into the AGU's 16-bit N register.
Example:
MOVE(C)
Before Execution
X:$4072
R2
Explanation of Example:
Prior to execution, the contents of R3 is $1000. Execution of the MOVE(C) instruction moves the
AGU's 16-bit R2 register contents into the X data memory at the location $4072.
Restrictions:
A MOVE(C) instruction used within a DO loop that specifies the HWS as the source or that specifies
the SR or HWS as the destination cannot begin at the LA-2, LA-1, or LA within that DO loop.
A MOVE(C) instruction that specifies the HWS as the source or as the destination cannot be used im-
mediately before a DO instruction.
A MOVE(C) instruction that specifies the HWS as the source or that specifies the SR or HWS as the
destination cannot be used immediately before an ENDDO instruction.
A MOVE(C) instruction that specifies the SR, HWS, or SP as the destination cannot be used immedi-
ately before an RTI or RTS instruction.
A MOVE(C) HWS,HWS instruction is illegal and cannot be used.
Move Control Register
LC,X0 ; move the LC register into the X0 register
0100
0123
X:$CC00,N
0100
N
0123
R2,X:(R3+$3072)
1234
AAAA
Instruction Set Details
After Execution
LC
0100
X0
0100
; move X data memory value into the
; N register
After Execution
X:$CC00
0100
N
0100
; move R2 register into X data
; memory
After Execution
X:$4072
AAAA
R2
AAAA
MOVE(C)
A-117

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents