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
Operands
-
Wd
Destination 32-bit integer register -
Wn
First source / base 32-bit integer register -
imm
Imm