SAM3X8C Atmel Corporation, SAM3X8C Datasheet - Page 97

no-image

SAM3X8C

Manufacturer Part Number
SAM3X8C
Description
Manufacturer
Atmel Corporation
Datasheets
11.11.7.2
11057A–ATARM–17-Feb-12
11057A–ATARM–17-Feb-12
Condition code suffixes
V
For more information about the APSR see
A carry occurs:
Overflow occurs if the result of an add, subtract, or compare is greater than or equal to 2
less than –2
Most instructions update the status flags only if the S suffix is specified. See the instruction
descriptions for more information.
The instructions that can be conditional have an optional condition code, shown in syntax
descriptions as {cond}. Conditional execution requires a preceding IT instruction. An instruction
with a condition code is only executed if the condition code flags in the APSR meet the specified
condition.
You can use conditional execution with the IT instruction to reduce the number of branch instruc-
tions in code.
Table 11-16
flags.
Table 11-16. Condition code suffixes
Suffix
EQ
NE
CS or
HS
CC or
LO
MI
PL
VS
VC
HI
LS
GE
LT
GT
LE
AL
• if the result of an addition is greater than or equal to 2
• if the result of a subtraction is positive or zero
• as the result of an inline barrel shifter operation in a move or logical instruction.
Table 11-16
Flags
Z = 1
Z = 0
C = 1
C = 0
N = 1
N = 0
V = 1
V = 0
C = 1 and Z = 0
C = 0 or Z = 1
N = V
N = V
Z = 0 and N = V
Z = 1 and N
Can have any
value
31
also shows the relationship between condition code suffixes and the N, Z, C, and V
.
Set to 1 when the operation caused overflow, cleared to 0 otherwise.
shows the condition codes to use.
V
Meaning
Equal
Not equal
Higher or same, unsigned
Lower, unsigned <
Negative
Positive or zero
Overflow
No overflow
Higher, unsigned >
Lower or same, unsigned
Greater than or equal, signed
Less than, signed <
Greater than, signed >
Less than or equal, signed
Always. This is the default when no suffix is
specified.
“Program Status Register” on page
32
SAM3X/A
SAM3X/A
59.
31
, or
97
97

Related parts for SAM3X8C