English
Language : 

SH7760 Datasheet, PDF (109/1345 Pages) Renesas Technology Corp – SuperHTM RISC engine
Addressing Instruction
Mode
Format
Effective Address Calculation Method
Calculation
Formula
PC-relative @(disp:8, PC) Effective address is PC + 4 with 8-bit displacement Word: PC + 4
with
disp added. After disp is zero-extended, it is
+ disp × 2 →
displacement
multiplied by 2 (word), or 4 (longword), according EA
to the operand size. With a longword operand,
the lower 2 bits of PC are masked.
Longword:
PC & H'FFFF
PC
FFFC + 4 +
disp × 4 →
&*
EA
H'FFFF FFFC
+
4
+
disp
(zero-extended)
×
PC + 4 + disp
×2
or PC &
H'FFFF FFFC
+ 4 + disp × 4
PC-relative disp:8
2/4
* With longword operand
Effective address is PC + 4 with 8-bit displacement PC + 4 + disp
disp added after being sign-extended and
×2→
multiplied by 2.
Branch-
Target
PC
+
4
+
disp
(sign-extended)
×
PC + 4 + disp × 2
2
Rev. 1.0, 02/03, page 59 of 1294