dsp56800 Freescale Semiconductor, Inc, dsp56800 Datasheet - Page 340

no-image

dsp56800

Manufacturer Part Number
dsp56800
Description
16-bit Digital Signal Controllers
Manufacturer
Freescale Semiconductor, Inc
Datasheet
MOVE(C)
Example:
Explanation of Example:
Example:
Explanation of Example:
Example:
Explanation of Example:
Restrictions:
A-110
MOVEC
Execution of the MOVEC instruction moves the contents of the program controller’s 13-bit LC register
into the data ALU’s 16-bit X0 register.
MOVEC
Execution of the MOVEC instruction moves the contents of the X data memory at location $CC00 into
the AGU’s 16-bit N register.
MOVEC
Prior to execution, the contents of R3 is $1000. Execution of the MOVEC instruction moves the
AGU’s 16-bit R2 register contents into the X data memory at the location $4072.
A MOVEC 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 MOVEC instruction that specifies the HWS as the source or as the destination cannot be used im-
mediately before a DO instruction.
A MOVEC 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 MOVEC instruction that specifies the SR, HWS, or SP as the destination cannot be used immedi-
ately before an RTI or RTS instruction.
A MOVEC HWS,HWS instruction is illegal and cannot be used.
X:$CC00
Before Execution
Before Execution
Before Execution
X:$4072
LC
R2
X0
N
AAAA
0100
0123
0100
0123
1234
Move Control Register
DSP56800 Family Manual
LC,X0
X:$CC00,N
R2,X:(R3+$3072)
; move the LC register into
;
; move X data memory value into the
;
X:$CC00
After Execution
After Execution
After Execution
the X0 register
N register
X:$4072
; move R2 register into X data
; memory
LC
R2
X0
N
AAAA
AAAA
0100
0100
0100
0100
MOVE(C)
Freescale Semiconductor

Related parts for dsp56800