English
Language : 

PM0215 Datasheet, PDF (48/91 Pages) STMicroelectronics – STM32F0xxx Cortex-M0 programming manual
The STM32 Cortex-M0 instruction set
PM0215
3.5
General data processing instructions
Table 19 shows the data processing instructions.
Table 19. Data processing instructions
Mnemonic
Brief description
See
ADCS
ADD(S)
ANDS
ASRS
BICS
CMN
CMP
EORS
LSLS
LSRS
MOV(S)
MULS
MVNS
ORRS
REV
REV16
REVSH
RORS
RSBS
SBCS
SUBS
SUBW
SXTB
SXTH
UXTB
UXTH
TST
Add with carry
ADD{S}, ADCS, SUB{S}, SBCS, and RSBS on
page 49
Add
ADD{S}, ADCS, SUB{S}, SBCS, and RSBS on
page 49
Logical AND
ANDS, ORRS, EORS and BICS on page 51
Arithmetic shift right
ASRS, LSLS, LSRS and RORS on page 52
Bit clear
ANDS, ORRS, EORS and BICS on page 51
Compare negative
CMP and CMN on page 53
Compare
CMP and CMN on page 53
Exclusive OR
ANDS, ORRS, EORS and BICS on page 51
Logical shift left
ASRS, LSLS, LSRS and RORS on page 52
Logical shift right
ASRS, LSLS, LSRS and RORS on page 52
Move
MOV, MOVS and MVNS on page 54
Multiply
MULS on page 55
Move NOT
MOV, MOVS and MVNS on page 54
Logical OR
ANDS, ORRS, EORS and BICS on page 51
Reverse byte order in a word
REV, REV16, and REVSH on page 56
Reverse byte order in each halfword REV, REV16, and REVSH on page 56
Reverse byte order in bottom halfword
and sign extend
REV, REV16, and REVSH on page 56
Rotate right
ASRS, LSLS, LSRS and RORS on page 52
Reverse subtract
ADD{S}, ADCS, SUB{S}, SBCS, and RSBS on
page 49
Subtract with carry
ADD{S}, ADCS, SUB{S}, SBCS, and RSBS on
page 49
Subtract
ADD{S}, ADCS, SUB{S}, SBCS, and RSBS on
page 49
Subtract
ADD{S}, ADCS, SUB{S}, SBCS, and RSBS on
page 49
Sign extends to 32 bits
SXTB, SXTH, UXTB and UXTH on page 57
Sign extends to 32 bits
SXTB, SXTH, UXTB and UXTH on page 57
Zero extends to 32 bits
SXTB, SXTH, UXTB and UXTH on page 57
Zero extends to 32 bits
SXTB, SXTH, UXTB and UXTH on page 57
Test
TST on page 58
48/91
Doc ID 022979 Rev 1