Hardware manual
Rev. 3.0, 09/98, page 39 of 361
2.5.6 Branching Instructions
Table 2.9 describes the branching instructions. Figure 2.8 shows their object code formats.
Table 2.9 Branching Instructions
Instruction Size Function
B
CC
Branches if condition cc is true.
Mnemonic cc field Description Condition
BRA (BT) 0 0 0 0 Always (True) Always
BRN (BF) 0 0 0 1 Never (False) Never
BHI 0 0 1 0 High C ∨ Z = 0
BLS 0 0 1 1 Low or Same C ∨ Z = 1
BCC (BHS) 0 1 0 0 Carry Clear C = 0
(High or Same)
BCS (BLO) 0 1 0 1 Carry Set (Low) C = 1
BNE 0 1 1 0 Not Equal Z = 0
BEQ 0 1 1 1 Equal Z = 1
BVC 1 0 0 0 Overflow Clear V = 0
BVS 1 0 0 1 Overflow Set V = 1
BPL 1 0 1 0 Plus N = 0
BMI 1 0 1 1 Minus N = 1
BGE 1 1 0 0 Greater or Equal N ⊕ V = 0
BLT 1 1 0 1 Less Than N ⊕ V = 1
BGT 1 1 1 0 Greater Than Z ∨ (N ⊕ V) = 0
BLE 1 1 1 1 Less or Equal Z ∨ (N ⊕ V) = 1
JMP Branches unconditionally to a specified address.
JSR Branches to a subroutine at a specified address.
BSR Branches to a subroutine at a specified displacement from the current
address.
RTS Returns from a subroutine