cror
Condition Register OR
Performs a bitwise OR between two bits in the Condition Register.
Details
The cror instruction performs a bitwise OR operation between two bits from the Condition Register (CR) and stores the result in another bit of the CR. The bits are specified by the BA, BB, and BT fields.
Programming Note
The cror instruction is commonly used to combine condition flags from different parts of the Condition Register (CR) for conditional branching or logical operations. Ensure that the BA, BB, and BT fields correctly specify the bits you intend to OR; otherwise, it may lead to incorrect results. This instruction operates at user privilege level and does not generate exceptions under normal circumstances.
Example
Encoding
Operands
-
BT
Target Bit -
BA
Source Bit A -
BB
Source Bit B