Lockdown Lessons: An Eight-Part CC65 Course for the Atari 8-bit
In March 2020, with much of the world staying at home, AtariAge member Yaron Nir started an online course on developing for the Atari 8-bit in C with CC65. The videos are in Hebrew, his native language, but he posted every lesson in a single AtariAge thread, and the slides and source code work on their own. One English-only viewer said the slides and the GitHub code were very helpful.
The syllabus
Over the following weeks the course ran to eight lessons:
- Introduction: installing CC65, how the compiler and linker fit together, building a first Hello World, and debugging in Altirra.
- Graphics modes and display lists.
- Interrupts, with DLI tricks.
- Player/Missile Graphics.
- Segments, memory blocks and linker config files, demonstrated by reworking an existing game to show how memory and binary files are laid out.
- ANTIC mode E and pre-shifted software sprites, followed by CC65 optimisation techniques drawn from ilmenit's CC65-Advanced-Optimizations guide.
- Disabling the OS: using the RAM under the ROM, and scrolling theory.
- RMT music and sound effects.
He worked in Sublime Text, using its Ctrl+B build command to run a cl65 command line. When a viewer couldn't get a project going, a minimal recipe was posted in reply: a main.c, a one-line build.bat calling cl65 -t atari … -C atari.cfg -o program.xex, and the default atari.cfg linker file.
Tips from the audience
The thread became a CC65 clinic as much as a course announcement:
- Current CC65 accepts binary literals (
0b00011000), which make character-set and PMG data easier to read in the source. Initialisedvoidvariables can mix bytes and words, which suits display lists. The contributor who added Atari support pieces such as the ANTIC instruction definitions and OS structures said he was glad to see them used. - ilmenit suggested using
joystick.hand placing the display list in its own linker segment rather than copying it at run time. - dmsc shared an RMT player setup with relocatable tunes. A small converter turns a tune into a normal CA65 source file, so it doesn't need a fixed address. He included C and FastBasic examples with sound effects.
- On code size:
printfalone pulls in around 8 KB.conio.h, orputs()when you don't need formatting, keeps executables small.
Why it matters
Structured, Atari-specific teaching material for C is uncommon. Taken together, the slides, code and comments form a compact path from a first build to music, sprites and custom memory layouts.
Where to get it
The lesson code and the full slide deck are at github.com/AsafSaar/Atari-8bit-Programming, with one folder per lesson. The repository's README links the YouTube playlist of the lectures (in Hebrew) and lists the tools used: CC65, Altirra, Sublime Text and the Atari Player Editor.
Credits
- AtariAge — CC65 - online course - lesson #1 — AtariAge forum members
- GitHub — AsafSaar/Atari-8bit-Programming — GitHub project authors
