adds

Add and Set Flags (Immediate)

ADDS <Wd>, <Wn|Wsp>, #<imm> {, lsl #<shift>}

Adds immediate and updates flags.

Details

The Add and Set Flags instruction adds immediate and updates flags.

Pseudocode Operation

Wd ← Wn + imm
// Flags affected: N, Z, C, V

Example

ADDS w0, Wn, #16

Encoding

Binary Layout
00110001
sh
imm12
Wn
Wd
 
Format Data Processing (Immediate)
Opcode 0x31000000
Extension Base

Operands

  • Wd
    Destination 32-bit integer register
  • Wn
    First source / base 32-bit integer register
  • imm
    Imm