[ Bottom of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]

Assembler Language Reference

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 /
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

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.

Related Information

Branch Processor .

Floating-Point Processor .

Fixed-Point Move to or from Special-Purpose Registers Instructions .

Functional Differences for POWER family and PowerPC Instructions .

[ Top of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]