TSK3000A Generic Instruction - ADDU
Frozen Content
Instruction: Add Unsigned
Assembler Format | Example | Translates to... |
---|---|---|
addu rC, rB | addu $3, $4 | addu rC, rC, rB (with rA = rC) |
addu rC, rA, IMM32 | addu $3, $2, 0x12345678 | see note 2 |
addu rC, IMM32 (see note 1) | addu $3, 0x12345678 | see note 2 |
Notes
- This format can also be written as: addu 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 ADDIU machine instructions:
addu rC, rA, IMM32
translates to.....
addiu rC, rA, IMM16
addu rC, IMM32
translates to.....
addiu 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
addu rC, rA, $at