EasyManua.ls Logo

Mips Technologies R4000 - Page 612

Mips Technologies R4000
754 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Appendix A
A-144 MIPS R4000 Microprocessor User's Manual
Format:
SLTIU rt, rs, immediate
Description:
The 16-bit immediate is sign-extended and subtracted from the contents of
general register rs. Considering both quantities as unsigned integers, if rs
is less than the sign-extended immediate, the result is set to one; otherwise
the result is set to zero.
The result is placed into general register rt.
No integer overflow exception occurs under any circumstances. The
comparison is valid even if the subtraction used during the comparison
overflows.
Operation:
Exceptions:
None
SLTIU
Immediate Unsigned
Set On Less Than
31 2526 2021 1516 0
SLTIU rs rt
immediate
655 16
0 0 1 0 1 1
SLTIU
32 T: if (0 || GPR[rs]) < (immediate
15
)
16
|| immediate
15...0
then
GPR[rd] 0
31
|| 1
else
GPR[rd] 0
32
endif
64 T: if (0 || GPR[rs]) < (immediate
15
)
48
|| immediate
15...0
then
GPR[rd] 0
63
|| 1
else
GPR[rd] 0
64
endif

Table of Contents