EXTEND 11110 |
imm 10:5 |
imm 15:11 |
SLTI 01010 |
rx |
0 000 |
imm 4:0 |
5 |
6 |
5 |
5 |
3 |
3 |
5 |
SLTI rx, immediate |
MIPS16e |
Set on Less Than Immediate (Extended) |
Set on Less Than Immediate (Extended)
To record the result of a less-than comparison with a constant.
T = (GPR[rx] < immediate)
The 16-bitimmediate is sign-extended and subtracted from the contents of GPR rx. Considering both quantities as signed integers, if GPR rx is less than the sign-extended immediate, the result is set to 1 (true); otherwise, the result is set to 0 (false). The result is placed into GPR 24.
None
if GPR[Xlat(rx)] < sign_extend(immediate) then GPR[24] = 0GPRLEN-1 || 1 else GPR[24] = 0GPRLEN endif
None