subi $dest, $src1, Imm
Subtract an immediate from a register, and store the result in a third register.
Format
This is an RI format instrucion.
| 31 - 26 |
25 - 21 |
20 - 16 |
15 - 0 |
| 001110 |
dest |
src1 |
Immediate |
Functional Description
The subi instruction subtracts a sign-extended immediate Imm from operand register src1, then stores the result in dest.
dest = src1 + !src2 + 1
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.
Control then traps to an operating system handler.
Processor Mode
This is a user-level instruction.
Last modified: Sun Feb 25 12:47:30 CST 2001