TSK3000A Core Instruction - SLTIU

Frozen Content

Instruction:

Set On Less Than Immediate Unsigned

Assembler Format:

sltiu rB, rA, IMM16

Example:

sltiu $3, $4, 0x1234

Description:

Sign-extends the 16-bit immediate value, IMM16 and compares the result with the contents of GPR rA, treating both values as 32-bit unsigned integers. If rA is less than the sign extended IMM16 value, a '1' is placed into GPR rB, otherwise GPR rB is loaded with '0'.

Operation:

If (Unsigned)rA < (Unsigned)SignExtend(IMM16) Then
   rB <-- 1
Else
   rB <-- 0

Instruction Type:

I-Type

Instruction Fields:

rA = Register index of operand A

rB = Register index of destination

IMM16 = 16-bit immediate data value

Encoding:

31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
0 0 1 0 1 1
rA
rB
IMM16

Latency: 1

You are reporting an issue with the following selected text and/or image within the active document: