mfcr (Move from Condition Register) instruction
Purpose
Copies the contents of the Condition Register into a general-purpose register.
Syntax
Bits | Value |
---|---|
0 - 5 | 31 |
6 - 10 | RT |
11 - 15 | /// |
16 - 20 | /// |
21 - 30 | 19 |
31 | Rc |
Item | Description |
---|---|
mfcr | RT |
Description
The mfcr instruction copies the contents of the Condition Register into target general-purpose register (GPR) RT.
The mfcr instruction has one syntax form and does not affect the Fixed-Point Exception Register.
Parameters
Item | Description |
---|---|
RT | Specifies target general-purpose register where result of operation is stored. |
Examples
The following code copies the Condition Register into GPR 6:
# Assume the Condition Register contains 0x4055 F605.
mfcr 6
# GPR 6 now contains 0x4055 F605.