English
Language : 

HD6417751 Datasheet, PDF (211/1105 Pages) Renesas Technology Corp – SuperH RISC engine
Table 7.1 Addressing Modes and Effective Addresses (cont)
Addressing Instruction
Mode
Format
Effective Address Calculation Method
PC-relative @(disp:8, PC) Effective address is PC+4 with 8-bit displacement
with
disp added. After disp is zero-extended, it is
displacement
multiplied by 2 (word), or 4 (longword), according
to the operand size. With a longword operand,
the lower 2 bits of PC are masked.
PC
&*
Calculation
Formula
Word: PC + 4
+ disp × 2 →
EA
Longword:
PC &
H'FFFFFFFC
+ 4 + disp × 4
→ EA
H'FFFFFFFC
+
4
+
disp
(zero-extended)
×
PC + 4 + disp
×2
or PC &
H'FFFFFFFC
+ 4 + disp × 4
PC-relative disp:8
2/4
* With longword operand
Effective address is PC+4 with 8-bit displacement
disp added after being sign-extended and
multiplied by 2.
PC + 4 + disp
× 2 → Branch-
Target
PC
+
4
+
disp
(sign-extended)
×
PC + 4 + disp × 2
2
Rev. 3.0, 04/02, page 171 of 1064