mfmsr (Move from Machine State Register) instruction
Purpose
Copies the contents of the Machine State Register into a general-purpose register.
Syntax
Bits | Value |
---|---|
0 - 5 | 31 |
6 - 10 | RT |
11 - 15 | /// |
16 - 20 | /// |
21 - 30 | 83 |
31 | / |
Item | Description |
---|---|
mfmsr | RT |
Description
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.
Parameters
Item | Description |
---|---|
RT | Specifies target general-purpose register where result of operation is stored. |
Examples
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.
Security
The mfmsr instruction is privileged only in the PowerPC® architecture.