Hitachi SH7750 Programming Manual page 333

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

Advertisement

{
R[n]=(long)Read_Byte(R[m]+R[0]);
if ((R[n]&0x80)==0) R[n]&=0x000000FF;
else R[n]|=0xFFFFFF00;
PC+=2;
}
MOVWL0(long m, long n)
{
R[n]=(long)Read_Word(R[m]+R[0]);
if ((R[n]&0x8000)==0) R[n]&=0x0000FFFF;
else R[n]|=0xFFFF0000;
PC+=2;
}
MOVLL0(long m, long n)
{
R[n]=Read_Long(R[m]+R[0]);
PC+=2;
}
Example
MOV
R0,R1
MOV.W
R0,@R1
MOV.B
@R0,R1
MOV.W
R0,@-R1
MOV.L
@R0+,R1
MOV.B
R1,@(R0,R2)
MOV.W
@(R0,R2),R1
/* MOV.W @(R0,Rm),Rn */
/* MOV.L @(R0,Rm),Rn */
;Before execution R0 = H'FFFFFFFF, R1 = H'00000000
;After execution
R1 = H'FFFFFFFF
;Before execution R0 = H'FFFF7F80
;After execution
(R1) = H'7F80
;Before execution (R0) = H'80, R1 = H'00000000
;After execution
R1 = H'FFFFFF80
;Before execution R0 = H'AAAAAAAA, (R1) = H'FFFF7F80
;After execution
R1 = H'FFFF7F7E, (R1) = H'AAAA
;Before execution R0 = H'12345670
;After execution
R0 = H'12345674, R1 = (H'12345670)
;Before execution R2 = H'00000004, R0 = H'10000000
;After execution
R1 = (H'10000004)
;Before execution R2 = H'00000004, R0 = H'10000000
;After execution
R1 = (H'10000004)
Rev. 2.0, 03/99, page 319 of 396

Advertisement

Table of Contents
loading

Table of Contents