Changes

Jump to: navigation, search

6502 Jumps, Branches, and Procedures

1 byte added, 01:31, 18 September 2023
Procedures
== Procedures ==
Proedures Procedures - also called subroutines, functions, or methods - are a special case, because the program flow needs to return to the calling code when the procedure has finished.
In the 6502, the JSR (Jump to SubRoutine) instruction is used to push the current value of the [[6502#Registers|program counter]] on the stack, and then perform an unconditional jump to the address specified (using the absolute addressing mode):

Navigation menu