Hitachi SH7032 Hardware Manual page 58

Superh risc engine
Table of Contents

Advertisement

Table 2.5
Immediate Data Accessing
Classification
8-bit immediate
16-bit immediate
32-bit immediate
Note: The address of the immediate data is accessed by @(disp, PC).
Absolute Address: When data is accessed by absolute address, the value already in the absolute
address is placed in the memory table. By loading the immediate data when the instruction is
executed, that value is transferred to the register and the data is accessed in the indirect register
addressing mode.
Table 2.6
Absolute Address Accessing
Classification
Absolute address
Note: The address of the immediate data is accessed by @(disp, PC).
16/32-Bit Displacement: When data is accessed by 16-bit or 32-bit displacement, the pre-existing
displacement value is placed in the memory table. By loading the immediate data when the
instruction is executed, that value is transferred to the register and the data is accessed in the
indirect indexed register addressing mode.
Table 2.7
Accessing by Displacement
Classification
16-bit displacement
Note: The address of the immediate data is accessed by @(disp, PC).
SH7000 Series CPU
MOV
#H'12,R0
MOV.W
@(disp,PC),R0
.........
.DATA.W H'1234
MOV.L
@(disp,PC),R0
.........
.DATA.L H'12345678
SH7000 Series CPU
MOV.L
@(disp,PC),R1
MOV. B
@R1,R0
.........
.DATA.L
H'12345678
SH7000 Series CPU
MOV.W
@(disp,PC),R0
MOV.W
@(R0,R1),R2
.........
.DATA.W H'1234
Conventional CPU
MOV.B #H'12,R0
MOV.W
#H'1234,R0
MOV.L
#H'12345678,
R0
Conventional CPU
MOV.B
@H'12345678,R0
Conventional CPU
MOV.W
@(H'1234,R1),R2
23

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents