Copies the contents of one condition register field into another.
Bits | Value |
---|---|
0-5 | 19 |
6-8 | BF |
9-10 | // |
11-13 | BFA |
14-15 | // |
16-20 | /// |
21-30 | 0 |
31 | / |
mcrf | BF, BFA |
The mcrf instruction copies the contents of the condition register field specified by BFA into the condition register field specified by BF. All other fields remain unaffected.
The mcrf instruction has one syntax form and does not affect Condition Register Field 0 or the Fixed-Point Exception Register.
BF | Specifies target condition register field for operation. |
BFA | Specifies source condition register field for operation. |
The following code copies the contents of Condition Register Field 3 into Condition Register Field 2:
# Assume Condition Register Field 3 holds b'0110'. mcrf 2,3 # Condition Register Field 2 now holds b'0110'.