mcrf

Move Condition Register Field

mcrf BF, BFA

Copies the contents of one Condition Register field to another. Used to save comparison results.

Details

The contents of Condition Register field BFA are copied to Condition Register field BF.

Pseudocode Operation

CR4×BF+32:4×BF+35 ← CR4×BFA+32:4×BFA+35

Programming Note

Use mcrf to copy condition register fields, ensuring BFA and BF are valid. This instruction operates at user privilege level and does not raise exceptions under normal conditions.

Example

mcrf cr0, cr7

Encoding

Binary Layout
00000
0
CRFD
6
CRFS
9
00000
11
00000
14
00000
16
00000
21
00000
31
 
Format XL-form
Opcode 0x4C000020
Extension Base
Registers Altered CR0, CR1-CR7

Operands

  • BF
    Target Field (0-7)
  • BFA
    Source Field (0-7)
  • CRFD
    Destination Condition Register Field
  • CRFS
    Source Condition Register Field