Category:Architecture/ARM/SUB

From aldeid
Jump to navigation Jump to search
You are here
SUB

Description

SUB
Subtract.
SBC
Subtract with Carry.

Syntax

SUB{cond}{S} Rd, Rn, Operand2
SBC{cond}{S} Rd, Rn, Operand2

where:

cond
is an optional condition code (see Conditional execution).
S
is an optional suffix. If S is specified, the condition code flags are updated on the result of the operation (update the N, Z, C and V flags according to the result.)
Rd
is the ARM register for the result.
Rn
is the ARM register holding the first operand.
Operand2
is a flexible second operand. See Flexible second operand for details of the options.

Examples

INCOMPLETE SECTION OR ARTICLE
This section/article is being written and is therefore not complete.
Thank you for your comprehension.

This category currently contains no pages or media.