Mov - Hitachi SH7750 Programming Manual

High-performance risc engine superh (sh) 32-bit risc mcu/mpu series
Hide thumbs Also See for SH7750:
Table of Contents

Advertisement

10.58

MOV

Global Data
Transfer
Format
MOV.B @(disp,GBR),R0
MOV.W @(disp,GBR), R0
MOV.L @(disp,GBR),R0
MOV.B R0,@(disp,GBR)
MOV.W R0,@(disp,GBR)
MOV.L R0,@(disp,GBR)
Description
This instruction transfers the source operand to the destination. Byte, word, or longword can be
specified as the data size, but the register is always R0. If the transfer data is byte-size, the 8-bit
displacement is only zero-extended, so a range up to +255 bytes can be specified. If the transfer
data is word-size, the 8-bit displacement is multiplied by two after zero-extension, enabling a
range up to +510 bytes to be specified. With longword transfer data, the 8-bit displacement is
multiplied by four after zero-extension, enabling a range up to +1020 bytes to be specified.
When the source operand is memory, the loaded data is sign-extended to longword before being
stored in the register.
Notes
When loading, the destination register is always R0.
MOVe global data
Summary of Operation Instruction Code
(disp+GBR) → sign
extension R0
(disp×2+GBR) → sign
extension R0
(disp×4+GBR) → R0
R0 → (disp+GBR)
R0 → (disp×2+GBR)
R0 → (disp×4+GBR)
Data Transfer Instruction
11000100dddddddd 1
11000101dddddddd 1
11000110dddddddd 1
11000000dddddddd 1
11000001dddddddd 1
11000010dddddddd 1
Rev. 2.0, 03/99, page 323 of 396
Execution
States
T Bit

Advertisement

Table of Contents
loading

Table of Contents