Hitachi SH7750 Programming Manual page 147

High-performance risc engine superh (sh) 32-bit risc mcu/mpu series
Hide thumbs Also See for SH7750:
Table of Contents

Advertisement

Table 7.1
Addressing Modes and Effective Addresses (cont)
Addressing
Instruction
Mode
Format
PC-relative
@(disp:8, PC) Effective address is PC+4 with 8-bit displacement
with
displacement
PC-relative
disp:8
Effective Address Calculation Method
disp added. After disp is zero-extended, it is
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
& *
H'FFFFFFFC
4
disp
(zero-extended)
2/4
Effective address is PC+4 with 8-bit displacement
disp added after being sign-extended and
multiplied by 2.
PC
+
4
disp
(sign-extended)
×
2
+
PC + 4 + disp
× 2
+
or PC &
H'FFFFFFFC
+ 4 + disp × 4
×
* With longword operand
PC + 4 + disp × 2
+
Rev. 2.0, 03/99, page 133 of 396
Calculation
Formula
Word: PC + 4
+ disp × 2 →
EA
Longword:
PC &
H'FFFFFFFC
+ 4 + disp × 4
→ EA
PC + 4 + disp
× 2 → Branch-
Target

Advertisement

Table of Contents
loading

Table of Contents