SLTI32 100100 |
rt |
rs |
immediate |
6 |
5 |
5 |
16 |
SLTI rt, rs, immediate |
microMIPS |
Set on Less Than Immediate |
Set on Less Than Immediate
To record the result of a less-than comparison with a constant.
GPR[rt] = (GPR[rs] < sign_extend(immediate) )
Compare the contents of GPR rs and the 16-bit signed immediate as signed integers; record the Boolean result of the comparison in GPR rt. If GPR rs is less than immediate, the result is 1 (true); otherwise, it is 0 (false).
The arithmetic comparison does not cause an Integer Overflow exception.
None
if GPR[rs] < sign_extend(immediate) then GPR[rt] = 0GPRLEN-1|| 1 else GPR[rt] = 0GPRLEN endif
None