INSTRUCTION FORMATS

EXAMPLE A: IMMEDIATE INTO 24-BIT REGISTER

(MOVE #$123456,A0)

 

 

 

 

BEFORE EXECUTION

 

 

 

 

 

 

 

 

 

 

A2

 

A1

 

A0

 

55

48 47

24 23

0

 

 

 

 

 

 

 

 

X X

X X X X X X

X X X X X X

 

 

 

 

 

 

 

7

0

23

0

23

0

 

 

 

 

AFTER EXECUTION

 

 

 

 

 

 

 

 

 

 

 

 

A2

 

A1

 

A0

 

 

55

48 47

24 23

 

0

 

 

 

 

 

 

 

 

 

X X

X X X X X X

1 2 3 4

5 6

 

 

 

 

 

 

 

 

7

0

23

0

23

 

0

EXAMPLE B:POSITIVE IMMEDIATE INTO 56-BIT REGISTER

(MOVE #$123456,A)

 

 

BEFORE EXECUTION

 

 

 

 

 

AFTER EXECUTION

 

 

 

 

 

 

 

 

 

 

 

 

A2

A1

A0

 

 

 

A2

A1

A0

55

48 47

24 23

 

0

 

55

48 47

24 23

0

X X X X X X X X X X X X X X

7

0

23

0

23

0

0

0

 

1

2

3

4

5

6

0

0

0

0

0

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

7

 

0

23

 

 

 

 

0

23

 

 

 

 

0

EXAMPLE C: NEGATIVE IMMEDIATE INTO 56-BIT REGISTER

(MOVE #$801234,A)

 

 

 

 

BEFORE EXECUTION

 

 

 

 

 

 

 

 

 

 

A2

 

A1

 

A0

 

55

48 47

24 23

0

 

 

 

 

 

 

 

 

X X

X X X X X X

X X X X X X

 

 

 

 

 

 

 

7

0

23

0

23

0

Assembler Syntax: #XXXXXX

Memory Spaces: P:

Additional Instruction Execution Time (Clocks): 2

Additional Effective Address Words: 1

 

 

 

AFTER EXECUTION

 

 

 

 

 

 

 

 

 

A2

 

A1

 

A0

 

 

55

48 47

24 23

0

 

 

 

 

 

 

 

 

F F

8 0 1 2

3 4

0 0 0 0 0 0

 

7

0

23

0

23

0

Figure 6-7 Special Addressing – Immediate Data

when used to address program memory. This addressing mode is classified as a program

reference.

6 - 16

INSTRUCTION SET INTRODUCTION

MOTOROLA

Page 113
Image 113
Motorola 24-Bit Digital Signal Processor, DSP56000 manual Special Addressing Immediate Data