Getting Started with C64 Development
Set up your tools for Commodore 64 programming.
What You Need
To develop for the C64, you need two things: a way to compile your code, and an emulator to run it.
⚙️ Dev Toolchain
Asm198x is one binary that assembles for every system in the curriculum.
Install
brew install asm198x/tap/asm198xOr, without Homebrew, the installer script for macOS, Linux and Windows.
Compile
Assembly
asm198x --dialect acme --prg game.asm -o game.prgBASIC
petcat -w2 -o game.prg game.baspetcat tokenises a BASIC listing into a loadable program. It comes with
VICE, which you are installing anyway to run what you build.
🖥️ Emulator
Install VICE natively for the best experience.
macOS
brew install viceLinux
sudo apt install viceWindows — Download from vice-emu.sourceforge.io
Run
x64sc game.prgUse x64sc (accurate) rather than x64 (faster but less accurate).