Hitachi SH7095 Hardware User Manual page 32

Table of Contents

Advertisement

Table 2.8
Addressing Modes and Effective Addresses (cont)
Addressing
Instruction
Mode
Format
Indirect register
@(disp:4,
addressing with
Rn)
displacement
Indirect indexed
@(R0, Rn)
register
addressing
Indirect GBR
@(disp:8,
addressing with
GBR)
displacement
Indirect indexed
@(R0, GBR) The effective address is the GBR value plus the R0. GBR + R0
GBR addressing
Effective Addresses Calculation
The effective address is Rn plus a 4-bit displacement
(disp). The value of disp is zero-extended, and
remains the same for a byte operation, is doubled for
a word operation, and is quadrupled for a longword
operation.
The effective address is the Rn value plus R0.
The effective address is the GBR value plus an 8-bit
displacement (disp). The value of disp is zero-
extended, and remains the same for a byte opera-
tion, is doubled for a word operation, and is
quadrupled for a longword operation.
Equation
Byte: Rn +
disp
Word: Rn +
disp × 2
Longword:
Rn + disp × 4
Rn + R0
Byte: GBR +
disp
Word: GBR +
disp × 2
Longword:
GBR + disp ×
4
Hitachi 21

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents