bcla

Branch Conditional Absolute (Link)

bcla BO,BI,target_addr (AA=1 LK=1)

Branches to the target address if the specified condition is met.

Encoding

Binary Layout
 
Format B-form
Opcode
Extension Base

Operands

  • BO
    Branch options / condition to test
  • BI
    Condition Register bit to test
  • target_addr
    Branch target address

Example

bc 12, 2, label

// Branch if CR bit 2 is set (beq).

Registers Altered

LR, CTR

Related

More in Base

Reference

Description

Conditional branch - see bc for the full BO/BI semantics. AA selects absolute vs. relative addressing; LK selects whether the Link Register is set to the return address.

Operation

(see bc)

Extended Mnemonics

Extended Mnemonic Equivalent Instruction

Programming Note

The bc instruction branches to a target address based on the condition bits in the Condition Register (CR). Ensure that the branch condition and target address are correctly set. The instruction operates at user privilege level, but care must be taken with conditional logic to avoid unintended execution paths.