Specifications

Table Of Contents
Altera Corporation 8–97
October 2007 Nios II Processor Reference Handbook
subi
subi
subtract immediate
Operation:
rB
rA – σ (IMMED)
Assembler Syntax:
subi rB, rA, IMMED
Example:
subi r8, r8, 4
Description: Sign-extends the immediate value IMMED to 32 bits, subtracts it from the value of rA
and then stores the result in rB.
Usage: The maximum allowed value of IMMED is 32768. The minimum allowed value is
–32767.
Pseudoinstruction:
subi is implemented as addi rB, rA, -IMMED