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 0000_0000h to 0000_FFFFh)

addiu rC, $0, IMM32

if IMM32 is in the range -215 to -1 (i.e. from FFFF_8000h to FFFF_FFFFh)

lui rC, @MSH(IMM32)

if IMM32 is a multiple of 216 (i.e. of the form xxxx_0000h)

lui $at, @MSH(IMM32)
ori rC, $at, @LSH(IMM32)

for all other values of IMM32

Relocatable expressions are not allowed.

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