Renesas SH7781 User Manual
Page 80
Advertising
3. Instruction Set
Rev.1.00 Jan. 10, 2008 Page 50 of 1658
REJ09B0261-0100
Addressing
Mode
Instruction
Format
Effective Address Calculation Method
Calculation
Formula
PC-relative disp:8
Effective address is PC + 4 with 8-bit displacement
disp added after being sign-extended and
multiplied by 2.
2
+
×
disp
(sign-extended)
4
+
PC
PC + 4 + disp
× 2
PC + 4 + disp
× 2 → Branch-
Target
PC-relative disp:12
Effective address is PC + 4 with 12-bit displacement
disp added after being sign-extended and
multiplied by 2.
2
+
×
disp
(sign-extended)
4
+
PC
PC + 4 + disp
× 2
PC + 4 + disp
× 2 → Branch-
Target
Rn
Effective address is sum of PC + 4 and Rn.
PC
4
Rn
+
+
PC + 4 + Rn
PC + 4 + Rn
→
Branch-Target
Advertising