CHAPTER 5 CPU SOFTWARE ARCHITECTURE

5.1Types of Addressing Modes

The F2MC-8FX CPU has the following ten addressing modes:

Direct addressing (dir)

Extended addressing (ext)

Bit direct addressing (dir:b)

Indexed addressing (@IX+off)

Pointer addressing (@EP)

General-purpose register addressing (Ri)

Immediate addressing (#imm)

Vector addressing (#k)

Relative addressing (rel)

Inherent addressing

Direct Addressing (dir)

This addressing mode, indicated as "dir" in the instruction list, is used to access the direct area from 0000H to 047FH. In this addressing, when the operand address is 00H to 7FH, it accesses 0000H to 007FH. Moreover, when the operand address is 80H to FFH, the access is good to 0080H to 047FH at the mapping by direct bank pointer DP setting.

[Example]

MOV 92H,A

 

DP

001B

0112H

45H

A

45H

Extended Addressing (ext)

This addressing mode, indicated as "ext" in the instruction list, is used to access the entire 64-Kbyte area. In this addressing mode, the upper byte is specified by the first operand and the lower byte by the second operand.

Bit Direct Addressing (dir:b)

This addressing mode, indicated as "dir:b" in the instruction list, is used for bit-by-bit access of the direct area from 0000H to 047FH. In this addressing, when the operand address is 00H to 7FH, it accesses 0000H to 007FH. Moreover, when the operand address is 80H to FFH, the access is good to 0080H to 047FH at the mapping by direct bank pointer DP setting. The position of the bit in the specified address is specified by the value for the instruction code of three subordinate position bits.

[Example]

SETB 34H: 2

 

7 6 5 4 3 2

1 0

 

 

 

 

 

 

0034H

X X X X X 1

X X B

DP

XXXB

 

 

 

 

 

 

 

40

Page 52
Image 52
Fujitsu F2MC-8FX manual Types of Addressing Modes, Extended Addressing ext