ST STM32F3 Series Programming Manual page 118

Hide thumbs Also See for STM32F3 Series:
Table of Contents

Advertisement

The STM32 Cortex-M4 instruction set
For the Thumb instruction set, these instructions do not affect the condition code flags.
Examples
SMLS
SMLSDX
SMLSLD
SMLSLDX R3, R6, R2, R7
118/262
R0, R4, R5, R6
; Multiplies bottom halfword of R4 with bottom
; halfword of R5, multiplies top halfword of R4
; with top halfword of R5, subtracts second from
; first, adds R6, writes to R0
R1, R3, R2, R0
; Multiplies bottom halfword of R3 with top
; halfword of R2, multiplies top halfword of R3
; with bottom halfword of R2, subtracts second from
; first, adds R0, writes to R1
R3, R6, R2, R7
; Multiplies bottom halfword of R6 with bottom
; halfword of R2, multiplies top halfword of R6
; with top halfword of R2, subtracts second from
; first, adds R6:R3, writes to R6:R3
; Multiplies bottom halfword of R6 with top
; halfword of R2, multiplies top halfword of R6
; with bottom halfword of R2, subtracts second from
; first, adds R6:R3, writes to R6:R3.
PM0214 Rev 10
PM0214

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Questions and answers

Table of Contents