TSK3000A Generic Instruction - SLT
Frozen Content
Instruction: Set On Less Than
Assembler Format | Example | Translates to... |
---|---|---|
slt rC, rB | slt $3, $4 | slt rC, rC, rB (with rA = rC) |
slt rC, rA, IMM32 | slt $3, $2, 0x12345678 | see note 2 |
slt rC, IMM32 (see note 1) | slt $3, 0x12345678 | see note 2 |
Notes
- This format can also be written as: slt rC, rC, IMM32 (with rA = rC)
- If the signed IMM32 operand fits into a signed 16-bit operand, then these two macro formats translate into single SLTI machine instructions:
slt rC, rA, IMM32
translates to.....
slti rC, rA, IMM16
slt rC, IMM32
translates to.....
slti rC, rC, IMM16 (with rA = rC)
If the IMM32 operand does not fit, or has an unknown value, then these two macro formats translate to"
li $at, IMM32
slt rC, rA, $at