Hitachi SH7750 Programming Manual page 253

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

Advertisement

Res0=temp0+temp1;
if (Res0<temp0) Res2++;
Res2=Res2+((Res1>>16)&0x0000FFFF)+temp3;
MACH=Res2;
MACL=Res0;
PC+=2;
}
Example
DMULU.L
R0,R1
STS
MACH,R0
STS
MACL,R1
;Before execution R0 = H'FFFFFFFE, R1 = H'00005555
;After execution
MACH = H'00005554, MACL = H'FFFF5556
;Get operation result (upper)
;Get operation result (lower)
Rev. 2.0, 03/99, page 239 of 396

Advertisement

Table of Contents
loading

Table of Contents