dsp56800e Freescale Semiconductor, Inc, dsp56800e Datasheet - Page 89

no-image

dsp56800e

Manufacturer Part Number
dsp56800e
Description
16-bit Digital Signal Controller Core
Manufacturer
Freescale Semiconductor, Inc
Datasheet
3.6.4.4
The 7-bit immediate data operand is located in the instruction operation word. The 7-bit signed value is
sign extended to the appropriate size of the register. It is used by the MOVE.W instruction. Figure 3-25
and Figure 3-26 demonstrate this addressing mode.
See Section 5.2.3, “Reading and Writing Integer Data to an Accumulator,” on page 5-12 for more details
on correctly loading the accumulator registers.
3.6.4.5
There are two instructions available for writing 16-bit immediate data to an AGU register. The MOVEU.W
instruction loads an AGU register with an unsigned 16-bit value, and the MOVE.L instruction loads an
AGU register with a signed 16-bit value. Figure 3-27 on page 3-40 demonstrates these two instructions.
Freescale Semiconductor
Available for: Word
Assembler Syntax: #xx
Additional Instruction Execution Cycles: 0
Additional Effective Address Program Words: 0
Available for: Word
Assembler Syntax: #xx
Additional Instruction Execution Cycles: 0
Additional Effective Address Program Words: 0
B
Figure 3-26. Immediate Addressing: 7-Bit Immediate Data to Data ALU Register
Figure 3-25. Immediate Addressing: 7-Bit Immediate Data to Address Register
35 32 31
R0
B2
X
7-Bit Immediate Data: #xx
16-Bit Immediate Data: #xxxx
23
7-Bit Immediate Into 24-Bit Address Register Example:
7-Bit Immediate into 16-Bit Data Register Example:
X
X0
Before Execution
7-Bit Immediate into 36-Bit Accumulator Example:
Before Execution
X
15
XXXXXX
B1
Before Execution
X
XXXX
X
16 15
X
Data Types and Addressing Modes
0
0
X
B0
X
X
0
B
35 32 31
R0
B2
F
23
MOVE.W #$0006,X0
F
X0
MOVE.W #-2,R0
After Execution
MOVE.W #-58,B
F
After Execution
15
$FFFFFE
B1
After Execution
C
$0006
6
16 15
0
Addressing Modes
0
0
0
B0
0
0
0
3-39

Related parts for dsp56800e