Motorola DSP56800 Manual page 350

16-bit digital signal processor
Table of Contents

Advertisement

MOVE(I)
Operation:
#xx → D
#xxxx → D
#xxxx → X:<ea>
Description: The 7-bit signed immediate operand is stored in the lowest 7 bits of the destination (D), and the upper
bits are filled with sign extension. The destination can be any register, X data memory location, or
on-chip peripheral register.
Example:
MOVE(I)
Before Execution
X0
Explanation of Example:
Prior to execution, X0 contains the value $1234. Execution of the instruction moves the value $FFC7
into X0.
Example:
MOVE(I)
Before Execution
X:$A009
Explanation of Example:
Prior to execution, the X data memory location $A009 contains the value $1234. Execution of the in-
struction moves the value $C33C into this memory location.
Note:
The MOVE(P) and MOVE(S) instructions also provide a mechanism for loading 16-bit immediate val-
ues directly into the last 64 and first 64 locations, respectively, in X data memory.
Condition Codes Affected:
The condition codes are not affected by this instruction.
A-120
Move Immediate
Assembler Syntax:
MOVE(I)
MOVE(I)
MOVE(I)
#<$FFC7,X0
; moves negative value into X0 since bit 6
; is 1
1234
#$C33C,X:$A009
1234
DSP56800 Family Manual
#xx,D
#xxxx,D
#xxxx,X:<ea>
After Execution
X0
FFC7
; moves 16-bit value directly into a
; memory location
After Execution
X:$A009
C33C
MOVE(I)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents