blt

Branch if Less Than

blt target
blta target
bltlr
clears LR
bltctr clears CTR

Branches to a target address if the condition 'less than' is true.

Details

The instruction checks if the condition 'less than' in the specified CR field is true and branches to the target address if it is.

Pseudocode Operation

if CR[CR field][LT] then
    PC <- target_address

Programming Note

The blt instruction is commonly used for conditional branching based on comparison results. Ensure that the correct condition register (CR) field is specified, as this directly affects the branch decision. The target address must be properly calculated to avoid incorrect jumps. This instruction operates at user privilege level and does not generate exceptions under normal circumstances.

Extended Mnemonics

Extended Mnemonic Equivalent Instruction

Example

blt target

Encoding

Binary Layout
10
6
AA
30
LK
31
LI
0
 
Format B-form
Opcode
Extension Base
Registers Altered LR, CTR

Operands

  • target
    Target Address