|
SH7018 Datasheet, PDF (37/431 Pages) Renesas Technology Corp – SuperH™ RISC engine | |||
|
◁ |
Table 2.8 Addressing Modes and Effective Addresses (cont)
Addressing
Mode
PC relative
addressing
Instruction
Format Effective Addresses Calculation
disp:8
The effective address is the PC value sign-extended
with an 8-bit displacement (disp), doubled, and
added to the PC value.
Equation
PC + disp à 2
PC
disp
+
(sign-extended)
Ã
PC + disp à 2
disp:12
2
The effective address is the PC value sign-extended PC + disp à 2
with a 12-bit displacement (disp), doubled, and
added to the PC value.
PC
disp
+
(sign-extended)
Ã
PC + disp à 2
2
Rn
The effective address is the register PC value
PC + Rn
plus Rn.
PC
+
PC + Rn
Immediate
addressing
#imm:8
#imm:8
#imm:8
Rn
The 8-bit immediate data (imm) for the TST, AND, â
OR, and XOR instructions are zero-extended.
The 8-bit immediate data (imm) for the MOV, ADD, â
and CMP/EQ instructions are sign-extended.
The 8-bit immediate data (imm) for the TRAPA
â
instruction is zero-extended and is quadrupled.
21
|
▷ |