Msr - ST STM32F0 Series Programming Manual

Hide thumbs Also See for STM32F0 Series:
Table of Contents

Advertisement

PM0215
3.7.7

MSR

Move the contents of a general-purpose register into the specified special register.
Syntax
MSR spec_reg, Rn
where:
'Rn' is the general-purpose source register.
'spec_reg' is the special-purpose destination register: APSR, IPSR, EPSR, IEPSR,
IAPSR, EAPSR, PSR, MSP, PSP, PRIMASK, or CONTROL.
Operation
MSR updates one of the special registers with the value from the register specified by Rn.
See
MRS on page
Restrictions
Rn must not be SP and must not be PC.
Condition flags
This instruction updates the flags explicitly based on the value in Rn.
Examples
MSR
CONTROL, R1
64.
; Read R1 value and write it to the CONTROL register
Doc ID 022979 Rev 1
The STM32 Cortex-M0 instruction set
65/91

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Subscribe to Our Youtube Channel

Table of Contents