Toshiba TX39 Computer Hardware User Manual


 
Architecture
177
SLT Set On Less Than SLT
31 26 25 21 20 16 15 11 10 6 5 0
SPECIAL
000000
rs rt rd
0
00000
SLT
101010
6 5 5 5 5 6
Format :
SLT rd, rs, rt
Description :
Compares the contents of general-purpose registers rt and rs as 32-bit signed integers. A 1, if rs is
less than rt, or a 0, otherwise, is placed in general-purpose register rd as the result of the comparison.
No overflow exception is raised. The comparison is valid even if the subtraction used in making
the comparison overflows.
Operation :
T:
if GPR[rs]< GPR[rt] then
GPR[rd] 0
31
|| 1
else
GPR[rd] 0
32
endif
Exceptions :
None