[ Previous | Next | Contents | Home | Search ]
AIX Version 4.3 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

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 and PowerPC Instructions.


[ Previous | Next | Contents | Home | Search ]