Rev. 1.00, 05/04, page 40 of 544
2.7
Addressing Modes and Effective Address Calculation
The H8S/2000 CPU supports the eight addressing modes listed in table 2.11. Each instruction uses
a subset of these addressing modes.
Arithmetic and logic operations instructions can use the register direct and immediate addressing
modes. Data transfer instructions can use all addressing modes except program-counter relative
and memory indirect. Bit manipulation instructions can use register direct, register indirect, or
absolute 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.11 Addressing Modes
No. Addressing
Mode
Symbol
1 Register
direct
Rn
2 Register
indirect
@ERn
3
Register indirect with displacement @(d:16,ERn)/@(d:32,ERn)
4
Register indirect with post-increment
Register indirect with pre-decrement
@ERn+
@–ERn
5 Absolute
address
@aa:8/@aa:16/@aa:24/@aa:32
6 Immediate
#xx:8/#xx:16/#xx:32
7 Program-counter
relative @(d:8,PC)/@(d:16,PC)
8 Memory
indirect
@@aa:8
2.7.1 Register
Direct—Rn
The register field of the instruction code specifies an 8-, 16-, or 32-bit general register which
contains the operand. R0H to R7H and R0L to R7L can be specified as 8-bit registers. R0 to R7
and E0 to E7 can be specified as 16-bit registers. ER0 to ER7 can be specified as 32-bit registers.
2.7.2 Register
Indirect—@ERn
The register field of the instruction code specifies an address register (ERn) which contains the
address of a memory operand. If the address is a program instruction address, the lower 24 bits are
valid and the upper 8 bits are all assumed to be 0 (H'00).
Summary of Contents for H8S/2111B
Page 2: ...Rev 1 00 05 04 page ii of xxxiv...
Page 8: ...Rev 1 00 05 04 page viii of xxxiv...
Page 22: ...Rev 1 00 05 04 page xxii of xxxiv...
Page 30: ...Rev 1 00 05 04 page xxx of xxxiv...
Page 84: ...Rev 1 00 05 04 page 50 of 544...
Page 100: ...Rev 1 00 05 04 page 66 of 544...
Page 126: ...Rev 1 00 05 04 page 92 of 544...
Page 180: ...Rev 1 00 05 04 page 146 of 544...
Page 216: ...Rev 1 00 05 04 page 182 of 544...
Page 254: ...Rev 1 00 05 04 page 220 of 544...
Page 268: ...Rev 1 00 05 04 page 234 of 544...
Page 382: ...Rev 1 00 05 04 page 348 of 544...
Page 462: ...Rev 1 00 05 04 page 428 of 544...
Page 464: ...Rev 1 00 05 04 page 430 of 544...
Page 488: ...Rev 1 00 05 04 page 454 of 544...
Page 496: ...Rev 1 00 05 04 page 462 of 544...
Page 574: ...Rev 1 00 05 04 page 540 of 544...
Page 581: ......
Page 582: ...H8S 2111B Hardware Manual...