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

Assembler Language Reference

mfocrf (Move from One Condition Register Field) Instruction

Purpose

Copies the contents of one Condition Register field into a general-purpose register.

Syntax

Bits Value
0-5 31
6-10 RT
11 1
12-19 FXM
20 ///
21-30 19
31 ///
mfocrf RT, FXM

Description

The mfocrf instruction copies the contents of one Condition Register field specified by the field mask FXM into the target general-purpose register (GPR) RT.

Field mask FXM is defined as follows:

Bit Description
12 CR 00-03 is copied into GPR RS 00-03.
13 CR 04-07 is copied into GPR RS 04-07.
14 CR 08-11 is copied into GPR RS 08-11.
15 CR 12-15 is copied into GPR RS 12-15.
16 CR 16-19 is copied into GPR RS 16-19.
17 CR 20-23 is copied into GPR RS 20-23.
18 CR 24-27 is copied into GPR RS 24-27.
19 CR 28-31 is copied into GPR RS 28-31.

The mfocrf instruction has one syntax form and does not affect the Fixed-Point Exception Register.

Parameters

RT Specifies target general-purpose register where result of operation is stored.
FXM Specifies field mask. Only one bit may be specified.

Examples

The following code copies the Condition Register field 3 into GPR 6:

# Assume the Condition Register contains 0x4055 F605.
# Field 3 (0x10 = b'0001 0000')
mfocrf 6, 0x10
# GPR 6 now contains 0x0005 0000.

Related Information

Branch Processor.

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

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