I assume you already have
MIPS32™ Architecture For Programmers Volume II: The MIPS32™ Instruction Set. If not, the first thing you should do is download it. The description for
SLT rd,rs,rt
is
"Compare the contents of GPR rs and GPR rt as signed integers and 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)". As you can imagine, one can combine
SLT
with a
BEQ
or
BNE
to create an
if (rs < rt)
or
if (rs >= rt)
. —
Michael 55 secs ago