English
Language : 

SH-2A Datasheet, PDF (238/501 Pages) Renesas Technology Corp – Renesas 32-Bit RISC Microcomputer SuperH™ RISC engine Family
Section 6 Instruction Descriptions
disp=(0x000000FF & (long)d);
Write_Byte(GBR+disp,R[0]);
PC+=2;
}
MOVWSG(long d) /* MOV.W R0,@(disp,GBR) */
{
long disp;
disp=(0x000000FF & (long)d);
Write_Word(GBR+(disp<<1),R[0]);
PC+=2;
}
MOVLSG(long d) /* MOV.L R0,@(disp,GBR) */
{
long disp;
disp=(0x000000FF & (long)d);
Write_Long(GBR+(disp<<2),R[0]);
PC+=2;
}
Examples:
MOV.L @(2,GBR),R0
MOV.B R0,@(1,GBR)
; Before execution: @(GBR + 8) = H'12345670
; After execution: R0 = H'12345670
; Before execution: R0 = H'FFFF7F80
; After execution: @(GBR + 1) = H'FFFF7F80
Rev. 3.00 Jul 08, 2005 page 224 of 484
REJ09B0051-0300