TSK3000A Generic Instruction - LI
Frozen Content
Instruction: Load Immediate
Assembler Format | Example | Translates to... |
---|---|---|
li rC, IMM32 | li $3, 0x12345678 | see notes |
Notes
The expression should result in a 32-bit integer value in the range -2 31 to 2 32 - 1. There are four possible machine instruction representations of this macro instruction, depending on the value of the expression:
ori rC, $0, IMM32 | if IMM32 is in the range 0 to 216 - 1 (i.e. from |
addiu rC, $0, IMM32 | if IMM32 is in the range -215 to -1 (i.e. from |
lui rC, @MSH(IMM32) | if IMM32 is a multiple of 216 (i.e. of the form |
lui $at, @MSH(IMM32) | for all other values of IMM32 |
Relocatable expressions are not allowed.