| |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Technical Support On-Line Manuals Assembler User Guide | Condition code suffixes
The instructions that can be conditional have an optional condition code, shown in syntax descriptions as In Thumb state on processors before ARMv6T2, the The following table shows the condition codes that you can use and the flags they depend on. Table 15. Condition code suffixes
The following is an example of conditional execution. Example 20.
ADD r0, r1, r2 ; r0 = r1 + r2, don't update flags
ADDS r0, r1, r2 ; r0 = r1 + r2, and update flags
ADDSCS r0, r1, r2 ; If C flag set then r0 = r1 + r2, and update flags
CMP r0, r1 ; update flags based on r0-r1.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||