Toshiba TX39 Computer Hardware User Manual


 
Architecture
178
SLTI Set On Less Than Immediate SLTI
31 26 25 21 20 16 15 0
SLTI
001010
rs rt immediate
6 5 5 16
Format :
SLTI rt, rs, immediate
Description :
Sign-extends the 16-bit immediate value and compares the result with the contents of general-
purpose register rs, treating both values as 32-bit signed integers. A 1, if rs is less than the sigh-
extended immediate value, or a 0, otherwise, is placed in general-purpose register rt 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]< (immediate
15
)
16
|| immediate
15..0
then
GPR[rd] 0
31
|| 1
else
GPR[rd] 0
32
endif
Exceptions :
None