Encoding:

RR

11101

rx

ry

SLT

00010

5

3

3

5

Format:

SLT rx, ry

MIPS16e

Set on Less Than

Purpose:

Set on Less Than

To record the result of a 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 signed integers, if the contents of GPR rx are less than the contents of GPR ry, the result is set to 1 (true); otherwise, the result is set to 0

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

Restrictions:

None

Operation:

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

Exceptions:

None