dsp56800e Freescale Semiconductor, Inc, dsp56800e Datasheet - Page 90

no-image

dsp56800e

Manufacturer Part Number
dsp56800e
Description
16-bit Digital Signal Controller Core
Manufacturer
Freescale Semiconductor, Inc
Datasheet
Data Types and Addressing Modes
Sixteen-bit immediate data can also be moved to the data ALU registers. When the MOVE.W instruction is
used, the 16-bit value is loaded into the MSP of the accumulator, the value is sign extended into the
extension register, and the LSP is cleared. If the MOVE.L instruction is used, the value is moved into the
LSP of an accumulator and is sign extended through the upper 20 bits. These two cases are shown in
Figure 3-28.
Sixteen-bit immediate data is also used to specify the mask for the bit-manipulation instructions.
3-40
Available for: Word
Assembler Syntax: #xxxx
Additional Instruction Execution Cycles: 1
Additional Effective Address Program Words: 1
Available for: Word, Long
Assembler Syntax: #xxxx
Additional Instruction Execution Cycles: 1
Additional Effective Address Program Words: 1
R5
R5
B
B
Figure 3-28. Immediate Addressing: 16-Bit Immediate Data to Data ALU Register
35 32 31
35 32 31
Negative Immediate into Full 36-Bit Accumulator Example:
Before Execution
Before Execution
Figure 3-27. Immediate Addressing: 16-Bit Immediate Data to AGU Register
B2
B2
X
X
Immediate into 24-Bit Address Register Example:
23
23
Immediate into 24-Bit Address Register Example:
X
X
X
X
Positive Immediate into 36-Bit Accumulator Example:
X
X
16 15
16 15
Before Execution
Before Execution
X
X
B1
B1
X
X
X
X
X
X
X
X
16 15
16 15
X
X
DSP56800E Core Reference Manual
X
X
X
X
0
0
X
X
B0
B0
X
X
X
X
0
0
R5
R5
B
B
35 32 31
35 32 31
After Execution
After Execution
B2
B2
F
0
MOVE.L #$FF8001,R5
MOVEU.W #$8001,R5
23
23
F
0
1
F
MOVE.L #$FFFFB000,B
16 15
16 15
F
0
MOVE.W #$1234,B
After Execution
2
After Execution
F
B1
B1
8
8
3
F
0
0
4
16 15
F
16 15
Freescale Semiconductor
0
0
0
B
1
1
0
0
0
0
B0
B0
0
0
0
0
0
0

Related parts for dsp56800e