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.57

MOV

Immediate Data
Transfer
Format
MOV
#imm,Rn
MOV.W @(disp,PC),Rn (disp×2+PC+4) → sign
MOV.L @(disp,PC),Rn (disp×4+PC+4) → Rn
Description
This instruction stores immediate data, sign-extended to longword, in general register Rn. In the
case of word or longword data, the data is stored from memory address (PC + 4 + displacement ×
2) or (PC + 4 + displacement × 4).
With word data, the 8-bit displacement is multiplied by two after zero-extension, and so the
relative distance from the table is in the range up to PC + 4 + 510 bytes. The PC value is the
address of this instruction.
With longword data, the 8-bit displacement is multiplied by four after zero-extension, and so the
relative distance from the operand is in the range up to PC + 4 + 1020 bytes. The PC value is the
address of this instruction. A value with the lower 2 bits adjusted to B'00 is used in address
calculation.
Notes
If a PC-relative load instruction is executed in a delay slot, an illegal slot instruction exception will
be generated.
Rev. 2.0, 03/99, page 320 of 396
MOVe constant value
Summary of Operation
imm sign extension Rn
extension Rn
Data Transfer Instruction
Instruction Code
1110nnnniiiiiiii 1
1001nnnndddddddd 1
1101nnnndddddddd 1
Execution
States
T Bit

Advertisement

Table of Contents
loading

Table of Contents