Set on less than – NEC Network Controller uPD98502 User Manual
Page 549

APPENDIX A MIPS III INSTRUCTION SET DETAILS
Preliminary User’s Manual S15543EJ1V0UM
549
SLT
Set On Less Than
SLT
rs
SPECIAL
0 0 0 0 0 0
rt
rd
0
0 0 0 0 0
SLT
1 0 1 0 1 0
31
26 25
21 20
16 15
11 10
6 5
0
6
5
5
5
5
6
Format:
SLT rd, rs, rt
Description:
The contents of general register
rt are subtracted from the contents of general register rs. Considering both
quantities as signed integers, if the contents of general register
rs are less than the contents of general register rt,
the result is set to one; otherwise the result is set to zero.
No integer overflow exception occurs under any circumstances. The comparison is valid even if the subtraction
used during the comparison overflows.
Operation:
32
T:
if GPR [rs] < GPR [rt] then
GPR [rd]
← 0
31
|| 1
else
GPR [rd]
← 0
32
endif
64
T:
if GPR [rs] < GPR [rt] then
GPR [rd]
← 0
63
|| 1
else
GPR [rd]
← 0
64
endif
Exceptions:
None