Immediate Data: #Xxxx; Figure 4-10 Special Addressing: Immediate Data - Motorola DSP56800 Manual

16-bit digital signal processor
Table of Contents

Advertisement

Address Generation Unit
4.2.3.1

Immediate Data: #xxxx

This addressing mode requires one word of instruction extension. This additional word contains the 16-bit
immediate data used by the instruction. This reference is classified as a program reference. Examples of
the use and effects of immediate-data mode are shown in Figure 4-10 on page 4-18.
Immediate into 16-Bit Register Example
Before Execution
B2
B1
B
X
X
X
35 32 31
Positive Immediate into 36-Bit Accumulator Example
Before Execution
B2
B1
B
X
X
X
35 32 31
Negative Immediate into 36-Bit Accumulator Example
Before Execution
B2
B1
B
X
X
X
35 32 31
Assembler syntax: #xxxx
Additional instruction execution cycles: 1
Additional effective address program words: 1
4-18
B0
X
X
X
X
X
X
16 15
0
B0
X
X
X
X
X
X
16 15
0
B0
X
X
X
X
X
X
16 15
0
Figure 4-10. Special Addressing: Immediate Data
DSP56800 Family Manual
: MOVE #$A987,B1
After Execution
B2
B1
B
X
A
9
8
7
35 32 31
16 15
: MOVE #$1234,B
After Execution
B2
B1
B
0
1
2
3
4
35 32 31
16 15
: MOVE #$A987,B
After Execution
B2
B1
B
F
A
9
8
7
35 32 31
16 15
B0
X
X
X
X
0
B0
0
0
0
0
0
B0
0
0
0
0
0
AA0023

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents