2.6.5.1.1 Syntax
op{S}{cond} {Rd,} Rn, Operand2
op{cond} {Rd,} Rn, #imm12 ; ADD and SUB only
where:
- op is one of:
ADD
: AddADC
: Add with CarrySUB
: SubtractSBC
: Subtract with CarryRSB
: Reverse Subtract
S
is an optional suffix. IfS
is specified, the condition code flags are updated on the result of the operation, see 2.6.3.7 Conditional Execution.cond
is an optional condition code, see 2.6.3.7 Conditional Execution.Rd
is the destination register. If Rd is omitted, the destination register is Rn.Rn
is the register holding the first operand.- Operand2 is a flexible second operand. For more information about the options, see 2.6.3.3 Flexible Second Operand.
imm12
is any value in the range 0-4095