Table 7.1 Addressing Modes and Effective Addresses (cont)
Addressing Instruction
Calculation
Formula
Mode
Format
Effective Address Calculation Method
PC-relative
with
displacement
@(disp:8, PC) Effective address is PC+4 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.
Word: PC + 4
+ disp × 2 →
EA
Longword:
PC &
H'FFFFFFFC
+ 4 + disp × 4
→ EA
PC
*
&
+
H'FFFFFFFC
PC + 4 + disp
× 2
4
+
or PC &
H'FFFFFFFC
+ 4 + disp × 4
disp
(zero-extended)
×
2/4
*
With longword operand
PC-relative
disp:8
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
+
PC + 4 + disp × 2
disp
(sign-extended)
×
2
Rev. 6.0, 07/02, page 177 of 986