mcrxr (Move to Condition Register from XER) instruction
Purpose
Copies the Summary Overflow bit, Overflow bit, Carry bit, and bit 3 from the Fixed-Point Exception Register into a specified field of the Condition Register.
Syntax
Bits | Value |
---|---|
0 - 5 | 31 |
6 - 8 | BF |
9 - 10 | // |
11 - 15 | /// |
16 - 20 | /// |
21 - 30 | 512 |
31 | / |
Item | Description |
---|---|
mcrxr | BF |
Description
The mcrxr copies the contents of Fixed-Point Exception Register Field 0 bits 0-3 into Condition Register Field BF and resets Fixed-Point Exception Register Field 0 to 0.
The mcrxr instruction has one syntax form and resets Fixed-Point Exception Register bits 0-3 to 0.
Parameters
Item | Description |
---|---|
BF | Specifies target condition register field where result of operation is stored. |
Examples
The following code copies the Summary Overflow bit, Overflow bit, Carry bit, and bit 3 from the Fixed-Point Exception Register into field 4 of the Condition Register.
# Assume bits 0-3 of the Fixed-Point Exception
# Register are set to b'1110'.
mcrxr 4
# Condition Register Field 4 now holds b'1110'.