Copies the contents of the Machine State Register into a general-purpose register.
Bits | Value |
---|---|
0-5 | 31 |
6-10 | RT |
11-15 | /// |
16-20 | /// |
21-30 | 83 |
31 | / |
mfmsr | RT |
The mfmsr instruction copies the contents of the Machine State Register into the target general-purpose register (GPR) RT.
The mfmsr instruction has one syntax form and does not affect the Fixed-Point Exception Register or Condition Register Field 0.
RT | Specifies target general-purpose register where result of operation is stored. |
The following code copies the contents of the Machine State Register into GPR 4:
mfmsr 4 # GPR 4 now holds a copy of the bit # settings of the Machine State Register.
The mfmsr instruction is privileged only in the PowerPC architecture.
Fixed-Point Move to or from Special-Purpose Registers Instructions .
Functional Differences for POWER family and PowerPC Instructions .