| |||
| Home > ARM and Thumb Instructions > Coprocessor instructions > MRS | |||
Move to ARM register from system coprocessor register.
MRS{cond}Rn,coproc_register
MRS{cond} APSR_nzcv,special_register
where:
condis an optional condition code.
coproc_registeris the name of the coprocessor register.
special_registeris the name of the coprocessor register that can be written to APSR_nzcv. This is only possible for the coprocessor register DBGDSCRint.
Rnis the ARM destination register. Rn must
not be PC.
You can use this instruction to read CP14 or CP15 coprocessor registers, with the exception of write-only registers. A complete list of the applicable coprocessor register names is in the ARMv7-AR Architecture Reference Manual. For example:
MRS R1, SCTLR ; writes the contents of the CP15 coprocessor register SCTLR
; into R1
This MRS ARM instruction is available in ARMv7-A
and ARMv7-R.
This MRS 32-bit Thumb instruction is available
in ARMv7-A and ARMv7-R.
There are no 16-bit Thumb versions of these instructions.