
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
[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
[Example] | MOVW A, @EP |
| |
|
|
| 27A6H |
|
|
|
|
EP | 27A5H |
| 27A5H |
| |||
|
|
|
|
34H
12H
A
1234H
■
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