{ "catalogVersion": "1.0", "verifiedOn": "2026-11-26", "verifiedWith": { "cc65": "cl65 V2.19 - Git cc3c40c (Windows x64 snapshot)", "vice": "VICE 3.10 GTK3 win64 (x64sc, x128, c1541, petcat)", "powershell": "PowerShell 7.6.7", "git": "git 2.53.0.windows.1", "os": "Windows 11 Pro 10.0.26200" }, "tools": { "cl65": { "package": "cc65", "executable": "cl65", "purpose": "cc65 compile/assemble/link driver (C and ca65 assembly)", "verifiedVersion": "cl65 V2.19 - Git cc3c40c", "versionArgs": ["--version"], "envVar": "CC65_HOME", "searchPaths": ["C:\\cc65\\bin", "C:\\Program Files\\cc65\\bin"], "install": { "source": "https://cc65.github.io/getting-started.html", "download": "https://sourceforge.net/projects/cc65/files/cc65-snapshot-win64.zip", "firstCommand": "Download https://sourceforge.net/projects/cc65/files/cc65-snapshot-win64.zip, unzip it (for example to C:\\cc65), then run: [Environment]::SetEnvironmentVariable('CC65_HOME','C:\\cc65','User') and open a new terminal." }, "docs": ["https://cc65.github.io/doc/cl65.html", "https://cc65.github.io/doc/ca65.html"] }, "x64sc": { "package": "vice", "executable": "x64sc", "purpose": "VICE cycle-exact Commodore 64 emulator", "verifiedVersion": "VICE 3.10", "versionArgs": [], "envVar": "VICE_HOME", "searchPaths": ["C:\\Program Files\\GTK3VICE-*\\bin", "C:\\Program Files\\SDL2VICE-*", "%LOCALAPPDATA%\\Microsoft\\WinGet\\Packages\\VICE-Team.VICE.GTK3*\\*\\bin"], "install": { "source": "https://vice-emu.sourceforge.io/index.html#download", "download": "https://sourceforge.net/projects/vice-emu/files/releases/binaries/windows/GTK3VICE-3.10-win64.zip/download", "firstCommand": "winget install --id VICE-Team.VICE.GTK3 -e (or unzip GTK3VICE-3.10-win64.zip and set VICE_HOME to the unzipped folder)" }, "docs": ["https://vice-emu.sourceforge.io/vice_2.html#SEC50", "https://vice-emu.sourceforge.io/vice_6.html", "https://vice-emu.sourceforge.io/vice_12.html"] }, "x128": { "package": "vice", "executable": "x128", "purpose": "VICE Commodore 128 emulator (VIC-II 40-column and VDC 80-column)", "verifiedVersion": "VICE 3.10", "versionArgs": [], "envVar": "VICE_HOME", "searchPaths": ["C:\\Program Files\\GTK3VICE-*\\bin", "C:\\Program Files\\SDL2VICE-*", "%LOCALAPPDATA%\\Microsoft\\WinGet\\Packages\\VICE-Team.VICE.GTK3*\\*\\bin"], "install": { "source": "https://vice-emu.sourceforge.io/index.html#download", "download": "https://sourceforge.net/projects/vice-emu/files/releases/binaries/windows/GTK3VICE-3.10-win64.zip/download", "firstCommand": "winget install --id VICE-Team.VICE.GTK3 -e (or unzip GTK3VICE-3.10-win64.zip and set VICE_HOME to the unzipped folder)" }, "docs": ["https://vice-emu.sourceforge.io/vice_7.html#SEC194", "https://vice-emu.sourceforge.io/vice_2.html#SEC50"] }, "c1541": { "package": "vice", "executable": "c1541", "purpose": "VICE disk image tool (create D64/D71/D81, copy PRG and SEQ files in and out)", "verifiedVersion": "c1541 (VICE 3.10)", "versionArgs": ["-version"], "envVar": "VICE_HOME", "searchPaths": ["C:\\Program Files\\GTK3VICE-*\\bin", "C:\\Program Files\\SDL2VICE-*", "%LOCALAPPDATA%\\Microsoft\\WinGet\\Packages\\VICE-Team.VICE.GTK3*\\*\\bin"], "install": { "source": "https://vice-emu.sourceforge.io/index.html#download", "download": "https://sourceforge.net/projects/vice-emu/files/releases/binaries/windows/GTK3VICE-3.10-win64.zip/download", "firstCommand": "winget install --id VICE-Team.VICE.GTK3 -e (c1541 ships with VICE)" }, "docs": ["https://vice-emu.sourceforge.io/vice_14.html"] }, "petcat": { "package": "vice", "executable": "petcat", "purpose": "VICE BASIC tokenizer/detokenizer (text listing <-> PRG)", "verifiedVersion": "petcat (VICE 3.10)", "versionArgs": ["-version"], "envVar": "VICE_HOME", "searchPaths": ["C:\\Program Files\\GTK3VICE-*\\bin", "C:\\Program Files\\SDL2VICE-*", "%LOCALAPPDATA%\\Microsoft\\WinGet\\Packages\\VICE-Team.VICE.GTK3*\\*\\bin"], "install": { "source": "https://vice-emu.sourceforge.io/index.html#download", "download": "https://sourceforge.net/projects/vice-emu/files/releases/binaries/windows/GTK3VICE-3.10-win64.zip/download", "firstCommand": "winget install --id VICE-Team.VICE.GTK3 -e (petcat ships with VICE)" }, "docs": ["https://vice-emu.sourceforge.io/vice_16.html"] } }, "capabilities": { "text-ui": "Text screens, menus and status lines (PRINT / conio / KERNAL CHROUT).", "keyboard-input": "Reading keys from the keyboard.", "joystick-input": "Reading a joystick in control port 1 or 2.", "disk-seq-io": "Opening and reading or writing sequential (SEQ) or program files on a disk drive.", "sprites": "VIC-II hardware sprites.", "custom-charset": "Redefined character sets.", "sid-sound": "Sound effects or music through the SID.", "smooth-animation": "Several objects updated every frame or every few frames in a steady frame-locked loop.", "raster-interrupts": "Cycle-sensitive raster interrupts, raster splits or stable raster timing.", "vdc-80col": "Native C128 80-column output through the VDC (8563/8568)." }, "platforms": { "c64": { "title": "Commodore 64", "displays": ["vicii-40"] }, "c128-native": { "title": "Commodore 128 in native C128 mode", "displays": ["vicii-40", "vdc-80"] }, "c128-c64mode": { "title": "Commodore 128 running in C64 mode", "displays": ["vicii-40"] } }, "displays": { "vicii-40": "VIC-II 40x25 text/graphics screen (C64, or C128 40-column)", "vdc-80": "VDC 80x25 text screen (C128 native 80-column, RGBI monitor)" }, "languages": { "basic-v2": { "title": "Commodore BASIC V2 (C64 ROM BASIC)", "platforms": ["c64", "c128-c64mode"], "capabilities": ["text-ui", "keyboard-input", "joystick-input", "disk-seq-io", "sprites", "custom-charset", "sid-sound"], "screenEncoding": "screen-upper", "strengths": "No compiler needed; editable on the machine itself; quickest to change.", "limits": "Interpreted: roughly hundreds of simple statements per second, so many moving objects or frame-locked logic are out of reach. No 80-column output." }, "basic-7": { "title": "Commodore BASIC 7.0 (C128 ROM BASIC)", "platforms": ["c128-native"], "capabilities": ["text-ui", "keyboard-input", "joystick-input", "disk-seq-io", "sprites", "custom-charset", "sid-sound", "vdc-80col"], "screenEncoding": "screen-upper", "strengths": "Structured loops, SPRITE/SOUND/PLAY/GRAPHIC commands, 80-column text with no extra code; editable on the C128.", "limits": "Interpreted and slow for real-time games; C128 native mode only." }, "c": { "title": "C (cc65)", "platforms": ["c64", "c128-native", "c128-c64mode"], "capabilities": ["text-ui", "keyboard-input", "joystick-input", "disk-seq-io", "sprites", "custom-charset", "sid-sound", "smooth-animation", "vdc-80col"], "screenEncoding": "screen-mixed", "strengths": "Readable, portable between C64 and C128 with #ifdef, conio/cbm file I/O library, much faster than BASIC.", "limits": "Larger and slower code than hand-written assembly; not suitable for cycle-exact raster work without assembly help." }, "asm-ca65": { "title": "6502 assembly (ca65)", "platforms": ["c64", "c128-native", "c128-c64mode"], "capabilities": ["text-ui", "keyboard-input", "joystick-input", "disk-seq-io", "sprites", "custom-charset", "sid-sound", "smooth-animation", "raster-interrupts", "vdc-80col"], "screenEncoding": "screen-upper", "strengths": "Full control of timing and memory; smallest and fastest code.", "limits": "Most effort to write, review and change." }, "mixed-c-asm": { "title": "C (cc65) with ca65 assembly modules", "platforms": ["c64", "c128-native", "c128-c64mode"], "capabilities": ["text-ui", "keyboard-input", "joystick-input", "disk-seq-io", "sprites", "custom-charset", "sid-sound", "smooth-animation", "raster-interrupts", "vdc-80col"], "screenEncoding": "screen-mixed", "strengths": "Game/app logic in C, timing-critical subsystems (frame sync, raster IRQs, inner loops) in assembly.", "limits": "Two languages and the cc65 calling convention to keep straight." }, "asm-onboard": { "title": "6502 assembly written and assembled on the Commodore (native assembler)", "platforms": ["c64", "c128-native"], "capabilities": ["text-ui", "keyboard-input", "joystick-input", "disk-seq-io", "sprites", "custom-charset", "sid-sound", "smooth-animation", "raster-interrupts", "vdc-80col"], "screenEncoding": "screen-upper", "strengths": "Authentic on-machine workflow.", "limits": "Depends on a user-supplied native assembler; source lives in the assembler's own file format." } }, "recipes": { "cc65": { "title": "Windows cross-development with cc65 (C, ca65 assembly or mixed) and VICE", "buildLocations": ["windows-cross"], "buildKind": "cc65", "languages": ["c", "asm-ca65", "mixed-c-asm"], "tools": ["cl65"], "starters": { "c": "cc65-c", "mixed-c-asm": "cc65-mixed", "asm-ca65": "cc65-asm" }, "combos": [ { "platform": "c64", "display": "vicii-40", "languages": ["c", "mixed-c-asm", "asm-ca65"], "cc65Target": "c64", "emulator": "x64sc", "emulatorArgs": [], "status": "verified" }, { "platform": "c128-native", "display": "vicii-40", "languages": ["c", "mixed-c-asm", "asm-ca65"], "cc65Target": "c128", "emulator": "x128", "emulatorArgs": ["-40col"], "status": "verified" }, { "platform": "c128-native", "display": "vdc-80", "languages": ["c", "mixed-c-asm"], "cc65Target": "c128", "emulator": "x128", "emulatorArgs": ["-80col"], "status": "verified" }, { "platform": "c128-native", "display": "vdc-80", "languages": ["asm-ca65"], "cc65Target": "c128", "emulator": "x128", "emulatorArgs": ["-80col"], "status": "unverified", "validationPlan": ["Write the starter screen through the KERNAL (CHROUT) after the 80-column editor is active, or drive the VDC through $D600/$D601.", "Add a VDC read-back probe like the C starter's src/smoke.c and dump it in tools/smoke.ps1.", "Run tools/smoke.ps1 and inspect build/smoke//screen.png."] }, { "platform": "c128-c64mode", "display": "vicii-40", "languages": ["c", "mixed-c-asm", "asm-ca65"], "cc65Target": "c64", "emulator": "x128", "emulatorArgs": ["-go64"], "status": "verified" } ], "commands": { "c": "cl65 -t -g -O -I src -o build/.prg -Ln build/.lbl -m build/.map src/*.c src/*.s", "asm-ca65": "cl65 -t -C -asm.cfg -u __EXEHDR__ -g -o build/.prg -Ln build/.lbl -m build/.map src/*.s" }, "sources": [ "https://cc65.github.io/doc/cl65.html", "https://cc65.github.io/doc/c64.html#toc4.2", "https://cc65.github.io/doc/c128.html", "https://cc65.github.io/doc/ca65.html", "https://vice-emu.sourceforge.io/vice_2.html#SEC50", "https://vice-emu.sourceforge.io/vice_7.html#SEC194", "https://vice-emu.sourceforge.io/vice_12.html" ] }, "basic-petcat": { "title": "BASIC written on Windows as a text listing, tokenized with petcat, run in VICE", "buildLocations": ["windows-cross"], "buildKind": "petcat", "languages": ["basic-v2", "basic-7"], "tools": ["petcat"], "starters": { "basic-v2": "basic-v2", "basic-7": "basic-7" }, "combos": [ { "platform": "c64", "display": "vicii-40", "languages": ["basic-v2"], "dialect": "2", "emulator": "x64sc", "emulatorArgs": [], "status": "verified" }, { "platform": "c128-c64mode", "display": "vicii-40", "languages": ["basic-v2"], "dialect": "2", "emulator": "x128", "emulatorArgs": ["-go64"], "status": "verified" }, { "platform": "c128-native", "display": "vicii-40", "languages": ["basic-7"], "dialect": "70", "emulator": "x128", "emulatorArgs": ["-40col"], "status": "verified" }, { "platform": "c128-native", "display": "vdc-80", "languages": ["basic-7"], "dialect": "70", "emulator": "x128", "emulatorArgs": ["-80col"], "status": "verified" } ], "commands": { "basic-v2": "petcat -w2 -f -o build/.prg -- src/main.bas", "basic-7": "petcat -w70 -f -o build/.prg -- src/main.bas" }, "sources": [ "https://vice-emu.sourceforge.io/vice_16.html", "https://vice-emu.sourceforge.io/vice_2.html#SEC50", "https://vice-emu.sourceforge.io/vice_12.html" ] }, "basic-onboard": { "title": "BASIC authored on the Commodore (or in VICE) with the repo kept on the Windows host; transfer by disk image", "buildLocations": ["on-commodore"], "buildKind": "petcat", "languages": ["basic-v2", "basic-7"], "tools": ["petcat", "c1541"], "starters": { "basic-v2": "basic-v2", "basic-7": "basic-7" }, "onCommodore": { "targetTool": "The built-in BASIC screen editor (BASIC V2 on the C64, BASIC 7.0 on the C128)", "diskFormat": "d64", "hostToTarget": "tools/to-commodore.ps1 tokenizes src/main.bas with petcat and writes it to build/transfer/.d64 with c1541. Attach that image in VICE (or copy it to a real disk) and LOAD\"\",8 then RUN.", "targetToHost": "On the Commodore: SAVE\"@0:\",8 onto the transfer disk. On the host: tools/from-commodore.ps1 reads the PRG back with c1541 and detokenizes it with petcat into src/main.bas, then review the diff and commit." }, "combos": [ { "platform": "c64", "display": "vicii-40", "languages": ["basic-v2"], "dialect": "2", "emulator": "x64sc", "emulatorArgs": [], "status": "verified" }, { "platform": "c128-native", "display": "vicii-40", "languages": ["basic-7"], "dialect": "70", "emulator": "x128", "emulatorArgs": ["-40col"], "status": "verified" }, { "platform": "c128-native", "display": "vdc-80", "languages": ["basic-7"], "dialect": "70", "emulator": "x128", "emulatorArgs": ["-80col"], "status": "verified" } ], "commands": { "to-commodore": "petcat -w2 -f -o build/transfer/.prg -- src/main.bas ; c1541 -format \",fd\" d64 build/transfer/.d64 -write build/transfer/.prg ", "from-commodore": "c1541 -attach build/transfer/.d64 -read build/transfer/.prg ; petcat -nh -2 -f -o src/main.bas -- build/transfer/.prg" }, "sources": [ "https://vice-emu.sourceforge.io/vice_14.html", "https://vice-emu.sourceforge.io/vice_16.html", "https://vice-emu.sourceforge.io/vice_2.html#SEC50" ] }, "asm-onboard": { "title": "Assembly written and assembled on the Commodore with a user-supplied native assembler", "buildLocations": ["on-commodore"], "buildKind": "none", "languages": ["asm-onboard"], "tools": ["c1541"], "starters": { "asm-onboard": "asm-onboard" }, "onCommodore": { "targetTool": "A native assembler supplied by the user (for example Turbo Macro Pro on the C64); not bundled or verified by the Foundry", "diskFormat": "d64", "hostToTarget": "tools/to-commodore.ps1 copies the repo's transfer files into build/transfer/.d64 with c1541; attach the image in VICE or write it to a real disk.", "targetToHost": "Save source and the assembled PRG to the transfer disk on the Commodore, then run tools/from-commodore.ps1 to copy them back into src/ and build/." }, "combos": [ { "platform": "c64", "display": "vicii-40", "languages": ["asm-onboard"], "emulator": "x64sc", "emulatorArgs": [], "status": "unverified", "validationPlan": ["Record the assembler name, version and where the user obtains it in docs/toolchain.md.", "Load the assembler in VICE with the transfer disk attached on drive 8.", "Type or load src/STARTER.TXT, assemble to a PRG named in docs/spec.md, save it to the transfer disk.", "Run tools/from-commodore.ps1, then load and run the PRG in VICE and compare with docs/manual-tests.md M0.", "Once it works, change the recipe status to verified in the Foundry catalog with the date and versions."] }, { "platform": "c128-native", "display": "vicii-40", "languages": ["asm-onboard"], "emulator": "x128", "emulatorArgs": ["-40col"], "status": "unverified", "validationPlan": ["Same as the C64 plan, using a C128-native assembler or the C128 MONITOR."] }, { "platform": "c128-native", "display": "vdc-80", "languages": ["asm-onboard"], "emulator": "x128", "emulatorArgs": ["-80col"], "status": "unverified", "validationPlan": ["Same as the C64 plan, using a C128-native assembler or the C128 MONITOR, in 80-column mode."] } ], "commands": {}, "sources": ["https://vice-emu.sourceforge.io/vice_14.html"] } } }