ST STM32F4 Series Programming Manual page 112

Cortex-m4
Hide thumbs Also See for STM32F4 Series:
Table of Contents

Advertisement

The STM32 Cortex-M4 instruction set
Condition flags
If an overflow is detected, the Q flag is set.
Examples
SMLABB
SMLATB
SMLATT
SMLABT
SMLABT
SMLAWB
SMLAWT
112/260
R5, R6, R4, R1
; Multiplies bottom halfwords of R6 and R4, adds
; R1 and writes to R5
R5, R6, R4, R1
; Multiplies top halfword of R6 with bottom halfword
; of R4, adds R1 and writes to R5
R5, R6, R4, R1
; Multiplies top halfwords of R6 and R4, adds
; R1 and writes the sum to R5
R5, R6, R4, R1
; Multiplies bottom halfword of R6 with top halfword
; of R4, adds R1 and writes to R5
R4, R3, R2
; Multiplies bottom halfword of R4 with top halfword
; of R3, adds R2 and writes to R4
R10, R2, R5, R3 ; Multiplies R2 with bottom halfword of R5, adds
; R3 to the result and writes top 32-bits to R10
R10, R2, R1, R5 ; Multiplies R2 with top halfword of R1, adds R5
; and writes top 32-bits to R10.
DocID022708 Rev 6
PM0214

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the STM32F4 Series and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Stm32l4+ seriesStm32f3 series

Table of Contents

Save PDF