13.07.2015 Views

Cortex-M0+ Devices Generic User Guide - Keil

Cortex-M0+ Devices Generic User Guide - Keil

Cortex-M0+ Devices Generic User Guide - Keil

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

The <strong>Cortex</strong>-<strong>M0+</strong> Instruction Set3.7.7 MSRMove the contents of a general-purpose register into the specified special register.SyntaxMSR spec_reg, Rnwhere:Rnspec_regIs the general-purpose source register.Is the special-purpose destination register: APSR, IPSR, EPSR, IEPSR, IAPSR, EAPSR,PSR, MSP, PSP, PRIMASK, or CONTROL.OperationMSR updates one of the special registers with the value from the register specified by Rn.See MRS on page 3-42.RestrictionsIn this instruction, Rn must not be SP and must not be PC.If the current mode of execution is not privileged, then all attempts to modify any register otherthan the APSR are ignored.Condition flagsThis instruction updates the flags explicitly based on the value in Rn.ExamplesMSRCONTROL, R1 ; Read R1 value and write it to the CONTROL registerARM DUI 0662A Copyright © 2012 ARM. All rights reserved. 3-43ID041812Non-Confidential

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!