Hitachi SH7750 Programming Manual page 401

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

Advertisement

TSTM(long i) /* TST.B #imm,@(R0,GBR) */
{
long temp;
temp=(long)Read_Byte(GBR+R[0]);
temp&=(0x000000FF & (long)i);
if (temp==0) T=1;
else T=0;
PC+=2;
}
Example
TST
R0,R0
TST
#H'80,R0
TST.B #H'A5,@(R0,GBR) ;Before execution (R0,GBR) = H'A5
;Before execution R0 = H'00000000
;After execution
T = 1
;Before execution R0 = H'FFFFFF7F
;After execution
T = 1
;After execution
T = 0
Rev. 2.0, 03/99, page 387 of 396

Advertisement

Table of Contents
loading

Table of Contents