Skip to content

Lesson 08: The Stack and Subroutines — Functions in Assembly

🔒 Coming Soon

This lesson is under development.

Part: Part 1: The 6502 CPU

What you'll learn:

  • The hardware stack at page 1 (/tmp/gen_lessons.sh100-/tmp/gen_lessons.sh1FF)
  • PHA, PLA — push and pull
  • JSR and RTS — calling subroutines
  • Stack discipline and the 2600's limited stack

This lesson is part of Racing the Beam — 72 hands-on lessons in Atari 2600 assembly programming.

Released under the MIT License.