Renesas HD6417641 Hardware Manual page 100

32-bit risc microcomputer superh risc engine family / sh7641 series
Table of Contents

Advertisement

Section 2 CPU
Addressing
Instruction
Mode
Format
PC-relative with
@(disp:8, PC)
displacement
PC-relative
disp:8
disp:12
Rn
Rev. 4.00 Sep. 14, 2005 Page 50 of 982
REJ09B0023-0400
Effective Address Calculation Method
Effective address is PC 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
*
&
H'FFFFFFFC
+
disp
(zero-extended)
×
2/4
* : With longword operand
Effective address is PC with 8-bit
displacement disp added after being sign-
extended and multiplied by 2.
PC
+
disp
(sign-extended)
×
2
Effective address is PC with 12-bit
displacement disp added after being sign-
extended and multiplied by 2
PC
+
disp
(sign-extended)
×
2
Effective address is sum of PC and Rn.
PC
+
Rn
Calculation Formula
Word: PC + disp × 2
Longword:
PC&H'FFFFFFFC
+ disp × 4
PC + disp × 2
or
PC&H'FFFFFFFC
+ disp × 4
PC + disp × 2
PC + disp × 2
PC + disp × 2
PC + disp × 2
PC + Rn
PC + Rn

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sh7641

Table of Contents