mfmsr

Move From Machine State Register

mfmsr RT

Moves the contents of the Machine State Register (MSR) into a general-purpose register.

Encoding

Binary Layout
31
0:5
RT
6:10
/
11:15
/
16:20
83
21:30
/
31
 
Format X-form
Opcode 0x7C0000A6
Extension Privileged

Operands

  • RT
    Target

Example

mfmsr r3

Registers Altered

MSR

Related

More in Privileged

Reference

Description

Moves the entire Machine State Register (MSR) into the general-purpose register RT. This is a privileged instruction that allows reading of system state including interrupt enable, privilege level, and other control bits. No condition registers or status fields are modified by this instruction.

Operation

RT ← MSR

Programming Note

This instruction is privileged.