spo600:6502_jumps_branches_and_subroutines
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
spo600:6502_jumps_branches_and_subroutines [2024/01/12 20:07] – created chris | spo600:6502_jumps_branches_and_subroutines [2024/04/16 18:10] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 25: | Line 25: | ||
Branches are conditional on the state of a [[6502# | Branches are conditional on the state of a [[6502# | ||
- | BCC ; Branch on Carry flag (''' | + | BCC ; Branch on Carry flag (C) Clear |
- | BCS ; Branch on Carry flag (''' | + | BCS ; Branch on Carry flag (C) Set |
- | BEQ ; Branch on EQual (zero ''' | + | BEQ ; Branch on EQual (zero Z flag set) |
- | BNE ; Branch on Not Equal (zero ''' | + | BNE ; Branch on Not Equal (zero Z flag clear) |
- | BMI ; Branch on MInus (negative flag ''' | + | BMI ; Branch on MInus (negative flag N set) |
- | BPL ; Branch on PLus (negative flag ''' | + | BPL ; Branch on PLus (negative flag N clear) |
- | BVC ; Branch on oVerflow flag ''' | + | BVC ; Branch on oVerflow flag V Clear |
- | BVS ; Branch on oVerflow flag ''' | + | BVS ; Branch on oVerflow flag V Set |
In assembler, you typically specify the address or label to which you wish to branch, and the assembler calculates the relative value for the branch offset. | In assembler, you typically specify the address or label to which you wish to branch, and the assembler calculates the relative value for the branch offset. |
spo600/6502_jumps_branches_and_subroutines.1705090055.txt.gz · Last modified: 2024/04/16 18:10 (external edit)