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