The STM32 Cortex-M4 instruction set
Restrictions
Do not use SP and do not use PC.
Condition flags
These instructions do not affect the condition code flags.
Examples
UQADD16 R7, R4, R2; Adds halfwords in R4 to corresponding halfword in R2,
UQADD8
UQSUB16 R6, R3, R0 ; Subtracts halfwords in R0 from corresponding halfword
UQSUB8
R1.
132/260
; saturates to 16 bits, writes to corresponding halfword
; of R7
R4, R2, R5 ; Adds bytes of R2 to corresponding byte of R5, saturates
; to 8 bits, writes to corresponding bytes of R4
; in R3, saturates to 16 bits, writes to corresponding
; halfword in R6
R1, R5, R6 ; Subtracts bytes in R6 from corresponding byte of R5,
; saturates to 8 bits, writes to corresponding byte of
DocID022708 Rev 6
PM0214
Need help?
Do you have a question about the STM32F4 Series and is the answer not in the manual?
Questions and answers