Syntax: ADD {<cond>}{S} <destination>, <operand1>, <operand2>
Operation: destination = operand one + operand two
Flags: N,Z,C,V
This instruction performs the arithmetic addition of its two operands, and stores the result in the destination register.
Examples:
ADD R0,R3,R4 ; R0 = R3 + R4
ADDS R0,R3,#2 ; R0 = R3 + 2 (Setting status flags)
ADDMI R0,R0,#1 ; If minus flag set increment R0 by 1
ADD R0,R0,R0,LSL#1 ; R0 = R0 + 2*R0 (R0 = 3*R0)
|
|
|