MRS (system coprocessor register to general-purpose register)
Move to general-purpose register from system coprocessor register.
- is an optional condition code.
- is the name of the coprocessor register.
- is the name of the coprocessor register that can be written to APSR_nzcv. This is only possible for the coprocessor register DBGDSCRint.
- is the general-purpose register.
Rmust not be PC.
You can use this pseudo-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 Arm®v7‑AR Architecture Reference Manual. For example:
MRS R1, SCTLR ; writes the contents of the CP15 coprocessor ; register SCTLR into R1
This pseudo-instruction is available in Armv7‑A and Armv7‑R in A32 and 32-bit T32 code.
There is no 16-bit version of this pseudo-instruction in T32.