spo600:6502_jumps_branches_and_procedures
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| spo600:6502_jumps_branches_and_procedures [2024/01/23 15:00] – created chris | spo600:6502_jumps_branches_and_procedures [2025/01/21 22:53] (current) – [Jumps] chris | ||
|---|---|---|---|
| Line 6: | Line 6: | ||
| ===== Jumps ===== | ===== Jumps ===== | ||
| - | Jumps are unconditional and cause the program counter to move to a particular address. The instruction is JMP, and both relative and absolute [[6502 Addressing Modes|addressing modes]] are available. | + | Jumps are unconditional and cause the program counter to move to a particular address. The instruction is JMP, and both absolute |
| Here is an example using the absolute addressing mode: | Here is an example using the absolute addressing mode: | ||
| Line 20: | Line 20: | ||
| JMP ($6094)</ | JMP ($6094)</ | ||
| - | This loads the PC with the value in memory at $6094: | + | This loads the PC with the value in memory at $6094: |
| ===== Branches | ===== Branches | ||
spo600/6502_jumps_branches_and_procedures.1706022037.txt.gz · Last modified: 2024/04/16 18:10 (external edit)
