addi $dest, $src1, imm
Add a register to an immediate and store the result in a register.
Format
This is an RI format instrucion.
31 - 26 |
25 - 21 |
20 - 16 |
15 - 0 |
000110 |
dest |
src1 |
Immediate |
Functional Description
The addi instruction adds register src1 to a sign-extended immediate using twos complement arithmetic, and stores the result in register dest.
dest = (signed) src + SIGN_EXT(imm);
Side Effects
If overflow occurs, the exception cause
register is logically ored with the value 0x1, and the exception
PC (EPC) register is set to the program counter of the offending
instruction.
traps to an operating system handler.
Processor Mode
This is a user-level instruction.
Last modified: Fri Feb 23 02:56:02 CST 2001