APPENDIX A MIPS III INSTRUCTION SET DETAILS
552 Preliminary Users Manual S15543EJ1V0UM
SLTU Set On Less Than Unsigned SLTU
rs
SPECIAL
0 0 0 0 0 0 rt rd 0
0 0 0 0 0

SLTU

1 0 1 0 1 1

31 26 25 21 20 16 15 11 10 6 5 0
6 5555 6
Format:
SLTU rd, rs, rt
Description:
The contents of general register
rt
are subtracted from the contents of general register
rs.
Considering both
quantities as unsigned integers, if the contents of general register
rs
are less than the contents of general register
rt
, the result is set to 1; otherwise the result is set to 0.
No integer overflow exception occurs under any circumstances. The comparison is valid even if the subtraction
used during the comparison overflows.
Operation:
32 T: if (0 || GPR [rs]) < 0 || GPR [rt] then
GPR [rd] 031 || 1
else
GPR [rd] 032
endif
64 T: if (0 || GPR [rs]) < 0 || GPR [rt] then
GPR [rd] 063 || 1
else
GPR [rd] 064
endif
Exceptions:
None