CHAPTER 5 CPU SOFTWARE ARCHITECTURE

Index Addressing (@IX+off)

This addressing mode, indicated as "@IX+off" in the instruction list, is used to access the entire 64-Kbyte area. In this addressing mode, the contents of the first operand are sign-extended and then added to the index register (IX). The result is used as the address.

[Example]

IX

MOVW A, @IX+5AH

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

27A5H

 

 

 

 

 

 

 

 

+ 2800H

34H

 

 

 

 

 

 

 

 

27FFH

 

 

 

 

 

 

 

12H

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

A

1234H

Pointer Addressing (@EP)

This addressing mode, indicated as "@EP" in the instruction list, is used to access the entire 64-Kbyte area. In this addressing mode, the contents of the extra pointer (EP) are used as the address.

[Example]

MOVW A, @EP

 

 

 

 

27A6H

 

 

 

 

EP

27A5H

 

27A5H

 

 

 

 

 

34H

12H

A

1234H

General-Purpose Register Addressing (Ri)

This addressing mode, indicated as "Ri" in the instruction list, is used to access the register bank area. In this addressing mode, one upper byte of the address is set to 01 and one lower byte is created from the contents of the register bank pointer (RP) and the 3 lower bits of the instruction to access this address.

[Example] MOV A, R2

RP

01010B

0152H

ABH

A

ABH

Immediate Addressing (#imm)

This addressing mode, indicated as "#imm" in the instruction list, is used for acquiring the immediate data. In this addressing mode, the operand is used directly as the immediate data. The byte or word is specified by the instruction code.

[Example] MOV A, #56H

A 56H

41

Page 53
Image 53
Fujitsu F2MC-8FX manual Index Addressing @IX+off