10.62 MSR (ARM register to system coprocessor register)

Move to system coprocessor register from ARM register.


MSR{cond} coproc_register, Rn
is an optional condition code.
is the name of the coprocessor register.
is the ARM source register. Rn must not be PC.


You can use this pseudo-instruction to write to any CP14 or CP15 coprocessor writable register. A complete list of the applicable coprocessor register names is in the ARMv7-AR Architecture Reference Manual. For example:
    MSR SCTLR, R1 ; writes the contents of R1 into the CP15
                  ;  coprocessor register SCTLR


This pseudo-instruction is available in ARMv7-R in ARM and 32-bit Thumb code.
There is no 16-bit version of this pseudo-instruction in Thumb.
Related reference
10.60 MRS (PSR to general-purpose register)
10.61 MRS (system coprocessor register to ARM register)
10.63 MSR (general-purpose register to PSR)
10.8 Condition code suffixes
10.147 SYS
Related information
ARM Architecture Reference Manual
Non-ConfidentialPDF file icon PDF versionARM DUI0379G
Copyright © 2007, 2008, 2011, 2012, 2014, 2015 ARM. All rights reserved.