Cortex-M3 Processor (Reference Material)
UG0331 User Guide Revision 15.0 67
Examples
CLREX
3.6.5 General Data processing instructions
The following table shows the data processing instructions:
Table 33 • Data Processing Instructions
Mnemonic Brief Description See
ADC Add with Carry "ADD, ADC, SUB, SBC, and RSB" section
ADD Add ADD, ADC, SUB, SBC, and RSB, page 69
ADDW Add ADD, ADC, SUB, SBC, and RSB, page 69
AND Logical AND AND, ORR, EOR, BIC, and ORN, page 70
ASR Arithmetic Shift Right ASR, LSL, LSR, ROR, and RRX, page 71
BIC Bit Clear AND, ORR, EOR, BIC, and ORN, page 70
CLZ Count leading zeros CLZ, page 72
CMN Compare Negative CMP and CMN, page 73
CMP Compare CMP and CMN, page 73
EOR Exclusive OR AND, ORR, EOR, BIC, and ORN, page 70
LSL Logical Shift Left ASR, LSL, LSR, ROR, and RRX, page 71
LSR Logical Shift Right ASR, LSL, LSR, ROR, and RRX, page 71
MOV Move MOV and MVN, page 73
MOVT Move Top MOVT, page 75
MOVW Move 16-bit constant MOV and MVN, page 73
MVN Move NOT "MOV and MVN" on page 73
ORN Logical OR NOT AND, ORR, EOR, BIC, and ORN, page 70
ORR Logical OR AND, ORR, EOR, BIC, and ORN, page 70
RBIT Reverse Bits REV, REV16, REVSH, and RBIT, page 75
REV Reverse byte order in a word REV, REV16, REVSH, and RBIT, page 75
REV16 Reverse byte order in each halfword REV, REV16, REVSH, and RBIT, page 75
REVSH Reverse byte order in bottom halfword
and sign extend
REV, REV16, REVSH, and RBIT, page 75
ROR Rotate Right ASR, LSL, LSR, ROR, and RRX, page 71
RRX Rotate Right with Extend ASR, LSL, LSR, ROR, and RRX, page 71
RSB Reverse Subtract ADD, ADC, SUB, SBC, and RSB, page 69
SBC Subtract with Carry
ADD, ADC, SUB, SBC, and RSB, page 69
SUB Subtract
ADD, ADC, SUB, SBC, and RSB, page 69
SUBW Subtract
ADD, ADC, SUB, SBC, and RSB, page 69
TEQ Test Equivalence
TST and TEQ, page 76
TST Test
TST and TEQ, page 76