Specifications

Instruction Fields
A = Register index of operand rA
B = Register index of operand rB
C = Register index of operand rC
Bit Fields
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
A B C 0x31
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
0x31 0 0x3A
addi
Instruction
addi
Operation
rB ← rA + σ(IMM16)
Assembler Syntax
addi rB, rA, IMM16
Example
addi r6, r7, -100
Description
Sign-extends the 16-bit immediate value and adds it to the
value of rA. Stores the sum in rB.
8-8
addi
NII51017
2015.04.02
Altera Corporation
Instruction Set Reference
Send Feedback