addi

Operands

$reg, $reg, [imm / LO(id)]

Variants

  • Add immediate (signed, overflow trap) : Sets $t1 = $t2 + immediate, where the immediate is a signed 16-bit constant (-32768 to 32767) sign-extended to 32 bits. Raises an overflow exception if the result overflows. Use 'addiu' to suppress the overflow check. addi $t1,$t2,-100
  • ADDition Immediate : set $t1 to ($t2 plus 32-bit immediate) addi $t1,$t2,100000
  • Add Lower Address : Set $t1 to $t2 plus the lower 16 bits of label's address addi $t1,$t2,%lo(label)

Add immediate (signed, overflow trap) : Sets $t1 = $t2 + immediate, where the immediate is a signed 16-bit constant (-32768 to 32767) sign-extended to 32 bits. Raises an overflow exception if the result overflows. Use 'addiu' to suppress the overflow check.

Loading...