Hitachi SH7750 Programming Manual page 338

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

Advertisement

Operation
MOVBLG(int d) /* MOV.B @(disp,GBR),R0 */
{
unsigned int disp;
disp=(unsigned int)(0x000000FF & d);
R[0]=(int)Read_Byte(GBR+disp);
if ((R[0]&0x80)==0) R[0]&=0x000000FF;
else R[0]|=0xFFFFFF00;
PC+=2;
}
MOVWLG(int d) /* MOV.W @(disp,GBR),R0 */
{
unsigned int disp;
disp=(unsigned int)(0x000000FF & d);
R[0]=(int)Read_Word(GBR+(disp<<1));
if ((R[0]&0x8000)==0) R[0]&=0x0000FFFF;
else R[0]|=0xFFFF0000;
PC+=2;
}
MOVLLG(int d) /* MOV.L @(disp,GBR),R0 */
{
unsigned int disp;
disp=(unsigned int)(0x000000FF & d);
R[0]=Read_Long(GBR+(disp<<2));
PC+=2;
}
MOVBSG(int d) /* MOV.B R0,@(disp,GBR) */
{
unsigned int disp;
Rev. 2.0, 03/99, page 324 of 396

Advertisement

Table of Contents
loading

Table of Contents