English
Language : 

SH-2A Datasheet, PDF (233/501 Pages) Renesas Technology Corp – Renesas 32-Bit RISC Microcomputer SuperH™ RISC engine Family
6.4.31
MOV
Immediate Data
Transfer
MOVe immediate data
Section 6 Instruction Descriptions
Data Transfer Instruction
Format
MOV #imm,Rn
MOV.W @(disp, PC),Rn
MOV.L @(disp, PC),Rn
Abstract
imm → sign extension → Rn
(disp × 2 + PC) → sign extension → Rn
(disp × 4 + PC) → Rn
Code
1110nnnniiiiiiii
1001nnnndddddddd
1101nnnndddddddd
Cycle T Bit
1
—
1
—
1
—
Description
Stores immediate data, which has been sign-extended to a longword, into general register Rn.
If the data is a word or longword, table data stored in the address specified by PC + displacement
is accessed. If the data is a word, the 8-bit displacement is zero-extended and doubled.
Consequently, the relative interval from the table can be up to PC + 510 bytes. The PC points to
the starting address of the fourth byte after this MOV instruction. If the data is a longword, the 8-
bit displacement is zero-extended and quadrupled. Consequently, the relative interval from the
table can be up to PC + 1020 bytes. The PC points to the starting address of the fourth byte after
this MOV instruction, but the lowest two bits of the PC are corrected to B'00.
Note
The optimum table assignment is at the rear end of the module or one instruction after the
unconditional branch instruction. If the optimum assignment is impossible for the reason of no
unconditional branch instruction in the 510 byte/1020 byte or some other reason, means to jump
past the table by the BRA instruction are required. By assigning this instruction immediately after
the delayed branch instruction, the PC becomes the "first address + 2".
For the Renesas Technology Super H RISC engine assembler, declarations should use scaled
values (×2, ×4) as displacement values.
Rev. 3.00 Jul 08, 2005 page 219 of 484
REJ09B0051-0300