Skip to content

ADDI

32-bit Base **Group:** Arithmetic Operation 64bit  |  Ch 12   ALU — Arithmetic Logic Unit  |  **Length:** 32  |  **Decode:**

Assembly Syntax

  • addi SrcL, uimm, ->{t, u, Rd}

Encoding

ADDI encoding
Bitfield encoding diagram. MSB is on the left, LSB on the right.

Description

Integer add-immediate. Adds a sign-extended 12-bit immediate to a register.

Pseudocode (informative)

rd = rs1 + SignExtend(imm12);

Encoding Notes

No additional encoding notes.

Full Catalog Forms

Assembly Length Decode
addi SrcL, uimm, ->{t, u, Rd} 32
← [Arithmetic Operation 64bit](../groups/arithmetic_operation_64bit.md)    [Index](../index.md)    [All instructions](index.md) →