POOL32A 000000 |
rt |
rs |
rd |
0 |
SLTU 1110010000 |
6 |
5 |
5 |
5 |
1 |
10 |
SLTU rd, rs, rt |
microMIPS |
Set on Less Than Unsigned |
Set on Less Than Unsigned
To record the result of an unsigned less-than comparison.
GPR[rd] = (GPR[rs] < GPR[rt])
Compare the contents of GPR rs and GPR rt as unsigned integers; record the Boolean result of the comparison in
GPR rd. If GPR rs is less than GPR rt, the result is 1 (true); otherwise, it is 0 (false).
The arithmetic comparison does not cause an Integer Overflow exception.
None
if (0 || GPR[rs]) < (0 || GPR[rt]) then GPR[rd] = 0GPRLEN-1 || 1 else GPR[rd] = 0GPRLEN endif
None