CHAPTER 5 CPU SOFTWARE ARCHITECTURE
5.1Types of Addressing Modes
The
•Direct addressing (dir)
•Extended addressing (ext)
•Bit direct addressing (dir:b)
•Indexed addressing (@IX+off)
•Pointer addressing (@EP)
•
•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
■Bit Direct Addressing (dir:b)
This addressing mode, indicated as "dir:b" in the instruction list, is used for
[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