33
2.6
Addressing Modes and Effective Address Calculation
The following describes the H8/300H CPU. In the H8/3664 Series, the upper eight bits are ignored
in the generated 24-bit address, so the effective address is 16 bits.
2.6.1
Addressing Modes
The H8/300H CPU supports the eight addressing modes listed in table 2.9. Each instruction uses a
subset of these addressing modes. Addressing modes that can be used differ depending on the
instruction. For details, refer to appendix A, CPU Instruction Set. Arithmetic and logic instructions
can use the register direct and immediate modes. Data transfer instructions can use all addressing
modes except program-counter relative and memory indirect. Bit manipulation instructions use
register direct, register indirect, or absolute (@aa:8) addressing mode to specify an operand, and
register direct (BSET, BCLR, BNOT, and BTST instructions) or immediate (3-bit) addressing
mode to specify a bit number in the operand.
Table 2.9
Addressing Modes
No.
Addressing Mode
Symbol
1
Register direct
Rn
2
Register indirect
@ERn
3
Register indirect with displacement
@(d:16, ERn)/@(d:24, ERn)
4
Register indirect with post-increment
Register indirect with pre-decrement
@ERn+
@–ERn
5
Absolute address
@aa:8/@aa:16/@aa:24
6
Immediate
#xx:8/#xx:16/#xx:32
7
Program-counter relative
@(d:8, PC)/@(d:16, PC)
8
Memory indirect
@@aa:8
Содержание H8/3660
Страница 4: ......
Страница 26: ...10 ...
Страница 82: ...66 ...
Страница 152: ...136 ...
Страница 154: ...138 ...
Страница 260: ...244 ...
Страница 408: ...392 18 5 Output Load Circuit VCC 2 4 kΩ 12 kΩ 30 pF LSI output pin Figure 18 7 Output Load Condition ...
Страница 457: ...441 DEC VIN CH3 to CH0 A D converter Internal data bus Figure C 17 Port B Block Diagram PB7 to PB0 ...