EasyManuals Logo

ST STM32F0 Series User Manual

ST STM32F0 Series
91 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #55 background imageLoading...
Page #55 background image
PM0215 The STM32 Cortex-M0 instruction set
Doc ID 022979 Rev 1 55/91
3.5.6 MULS
Multiply using 32-bit operands, and producing a 32-bit result.
Syntax
MULS Rd, Rn, Rm
where:
Rd’ is the destination register
Rn, Rm’ are registers holding the values to be multiplied.
Operation
The MUL instruction multiplies the values in the registers specified by Rn and Rm, and
places the least significant 32 bits of the result in Rd. The condition code flags are updated
on the result of the operation, see Conditional execution on page 39.
The results of this instruction does not depend on whether the operands are signed or
unsigned.
Restrictions
In this instruction:
Rd, Rn, and Rm must only specify R0-R7
Rd must be the same as Rm.
Condition flags
This instruction updates the N and Z flags according to the result. It does not affect the C or
V flags.
Examples
MULS R0, R2, R0 ; Multiply with flag update, R0 = R0 x R2

Table of Contents

Other manuals for ST STM32F0 Series

Questions and Answers:

Question and Answer IconNeed help?

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

ST STM32F0 Series Specifications

General IconGeneral
BrandST
ModelSTM32F0 Series
CategoryMicrocontrollers
LanguageEnglish

Related product manuals