beautypg.com

Sltu, Set on less than unsigned – NEC Network Controller uPD98502 User Manual

Page 552

background image

APPENDIX A MIPS III INSTRUCTION SET DETAILS

552

Preliminary User’s Manual S15543EJ1V0UM

SLTU

Set On Less Than Unsigned

SLTU

rs

SPECIAL

0 0 0 0 0 0

rt

rd

0

0 0 0 0 0

SLTU

1 0 1 0 1 1

31

26 25

21 20

16 15

11 10

6 5

0

6

5

5

5

5

6

Format:

SLTU rd, rs, rt

Description:

The contents of general register

rt are subtracted from the contents of general register rs. Considering both

quantities as unsigned integers, if the contents of general register

rs are less than the contents of general register

rt, the result is set to 1; otherwise the result is set to 0.

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 (0 || GPR [rs]) < 0 || GPR [rt] then

GPR [rd]

← 0

31

|| 1

else

GPR [rd]

← 0

32

endif

64

T:

if (0 || GPR [rs]) < 0 || GPR [rt] then

GPR [rd]

← 0

63

|| 1

else

GPR [rd]

← 0

64

endif

Exceptions:

None