Hitachi SH7709S Hardware Manual page 49

Superh risc engine
Table of Contents

Advertisement

Table 2.2
Addressing Modes and Effective Addresses (cont)
Addressing
Instruction
Mode
Format
PC-relative
@(disp:8,
with
PC)
displacement
PC-relative
disp:8
disp:12
30
Effective Address Calculation Method
Effective address is register PC contents with
8-bit displacement 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
(for longword)
&
H'FFFFFFFC
+
disp
(zero-extended)
x
2/4
Effective address is register PC contents with
8-bit displacement disp added after being
sign-extended and multiplied by 2.
PC
disp
(sign-extended)
×
2
Effective address is register PC contents with
12-bit displacement disp added after being
sign-extended and multiplied by 2.
PC
disp
(sign-extended)
×
2
Calculation Formula
Word: PC + disp × 2
Longword:
PC & H'FFFF FFFC +
disp × 4
PC + disp × 2
or
PC&H'FFFFFFFC
+ disp × 4
PC + disp × 2
PC + disp × 2
+
PC + disp × 2
PC + disp × 2
+

Advertisement

Table of Contents
loading

Table of Contents