User Tools

Site Tools


spo600:6502_jumps_branches_and_procedures

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
spo600:6502_jumps_branches_and_procedures [2024/04/16 18:10] – external edit 127.0.0.1spo600: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 and indirect [[6502 Addressing Modes|addressing modes]] are available.
  
 Here is an example using the absolute addressing mode: Here is an example using the absolute addressing mode:
Line 20: Line 20:
  JMP ($6094)</code>  JMP ($6094)</code>
  
-This loads the PC with the value in memory at $6094:$6095. Effectively, $6094 is a pointer to the address of the next instruction to be executed.+This loads the PC with the value in memory at $6094:$6095 (this notation means that it's a 2-byte / 16-bit pointer stored on those two bytes). Effectively, $6094 is a pointer to the address of the next instruction to be executed.
  
 =====  Branches  ===== =====  Branches  =====
spo600/6502_jumps_branches_and_procedures.1713291008.txt.gz · Last modified: 2024/04/16 18:10 by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki