|
HD6417034 Datasheet, PDF (62/691 Pages) Renesas Technology Corp – SuperH RISC ENGINE SH7032 AND SH7034 | |||
|
◁ |
Table 2.8 Addressing Modes and Effective Addresses (cont)
Addressing Mnemonic
Mode
Expression
PC relative
addressing
with dis-
placement
@(disp:8, PC)
Effective Addresses Calculation
The effective address is the PC value plus an 8-bit
displacement (disp). disp is zero-extended, is
doubled for a word operation, and is quadrupled for
a longword operation. For a longword operation,
the lowest two bits of the PC are masked.
PC
&*
H'FFFFFFFC
+
disp
(zero-extended)
Ã
PC + disp à 2
or
PC & H'FFFFFFFC
+ disp à 4
Equation
Word: PC +
disp à 2
Longword:
PC &
H'FFFFFFFC
+ disp à 4
PC relative disp:8
addressing
2/4
*: For longword
The effective address is the PC value sign-
extended with an 8-bit displacement (disp),
doubled, and added to the PC.
PC
disp
+
(zero-extended)
Ã
PC + disp à 2
PC + disp Ã
2
disp:12
2
The effective address is the PC value sign-
extended with a 12-bit displacement (disp),
doubled, and added to the PC.
PC
disp
+
(zero-extended)
Ã
PC + disp à 2
PC + disp Ã
2
2
26
|
▷ |