adds

Add and Set Flags (Shifted Register)

ADDS <Wd>, <Wn>, <Wm> {, <shift> #<amount>}

Adds shifted register and updates flags.

Details

The Add and Set Flags instruction adds shifted register and updates flags.

Pseudocode Operation

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

Example

ADDS w0, w1, w2

Encoding

Binary Layout
00101011
000
Wm
imm6
Wn
Wd
 
Format Data Processing (Register)
Opcode 0x2B000000
Extension Base

Operands

  • Wd
    Destination 32-bit integer register
  • Wn
    First source / base 32-bit integer register
  • Wm
    Second source / offset 32-bit integer register