setbcr
Set Boolean Condition Reverse
setbcr RT, BI
Sets RT to 1 if CR bit is clear, else 0.
Details
The setbcr instruction sets the contents of register RT to -1 if bit BI of the Condition Register (CR) is 1, otherwise it sets RT to 0.
Pseudocode Operation
RT ← (CRBI = 1) ? 0 : -1
Programming Note
The setbcr instruction is useful for setting a register based on the state of a specific bit in the Condition Register. Ensure that the correct bit index BI is specified to avoid unintended behavior. This instruction operates at user privilege level and does not generate exceptions under normal conditions.
Example
setbcr r3, 0
Encoding
Binary Layout
31
0
RT
6
BI
11
/
16
416
21
/
31
Operands
-
RT
Target -
BI
CR Bit