Encoding:

RR

11101

rx

ry

SLTU

00011

5

3

3

5

Format:

SLTU rx, ry

MIPS16e

Set on Less Than Unsigned

Purpose:

Set on Less Than Unsigned

To record the result of an unsigned less-than comparison.

Description:

T = (GPR[rx] < GPR[ry])

The contents of GPR ry are subtracted from the contents of GPR rx. Considering both quantities as unsigned integers, if the contents of GPR rx are less than the contents of GPR ry, set the result to 1 (true); otherwise, set the result to 0

(false). The result is placed into GPR 24.

Restrictions:

None

Operation:

if (0 || GPR[Xlat(rx)]) < (0 || GPR[Xlat(ry)]) then
   GPR[24] = 0GPRLEN-1 || 1
else
   GPR[24] = 0GPRLEN
endif

Exceptions:

None