ADDI
addi is a common mnemonic used in assembly language to denote an add-immediate instruction. In this class of instructions, a constant value encoded within the instruction (the immediate) is added to the value in a source register, and the result is written to a destination register. The addi form is a core building block for arithmetic, pointer arithmetic, and constant loading in many reduced-instruction-set computing architectures.
In the most well-known usage, for example in the MIPS architecture, the instruction has the form addi
Immediate range issues are a practical consideration: the immediate value is encoded within the instruction, so
Usage of addi streamlines code that would otherwise require moving a constant into a register before performing
See also: add immediate instruction, MIPS instruction set, RISC architectures, overflow behavior in arithmetic.