APPENDIX A MIPS III INSTRUCTION SET DETAILS
Preliminary Users Manual S15543EJ1V0UM 551
SLTIU Set On Less Than Immediate Unsigned SLTIU
rs

SLTIU

0 0 1 0 1 1 rt immediate

31 26 25 21 20 16 15 0
655 16
Format:
SLTIU rt, rs, immediate
Description:
The 16-bit
immediate
is sign-extended and subtracted from the contents of general register
rs.
Considering both
quantities as unsigned integers, if
rs
is less than the sign-extended
immediate
, 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 || (immediate15) 16 || immediate15...0) then
GPR [rt] 031 || 1
else
GPR [rt] 032
endif
64 T: if
(
0 || GPR
[
rs
])
<
(
0 ||
(
immediate15
)
48 || immediate15...0
)
then
GPR [rt] 063 || 1
else
GPR [rt] 064
endif
Exceptions:
None