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.

Restrictions

In this instruction, Rn must not be SP or PC.

Condition flags

This instruction updates the flags explicitly based on the value in Rn.

Examples

MSR  CONTROL, R1 ; Read R1 value and write it to the CONTROL register 

Copyright © 2009 ARM Limited. All rights reserved.ARM DUI 0497A
Non-Confidential