How the Foundry chooses a language, toolchain and emulator configuration, and what each verified starter configuration contains. The machine-readable version is catalog/recipes.json.
| Need | Platform / display |
|---|---|
| Runs on a C64 | c64 / vicii-40 |
| Native C128 mode, 40 columns (VIC-II, composite/RF) | c128-native / vicii-40 |
| Native C128 mode, 80 columns (VDC, RGBI) | c128-native / vdc-80 |
| The same C64 program on a C128 | add c128-c64mode / vicii-40 with dualTarget.strategy = c64-mode-on-both |
| C64 build and a native C128 build | c64 + c128-native with native-per-target |
80-column output exists only in native C128 mode. A C64 (or a C128 in C64 mode) cannot use the VDC.
Work down this list and stop at the first language that meets every requirement:
Check each criterion that applies:
| Criterion | BASIC V2 / 7.0 | C (cc65) | C + asm | ca65 asm |
|---|---|---|---|---|
| CPU timing (frame-locked updates, many movers) | poor | fair-good | good | best |
| Raster interrupts / cycle-exact effects | no | no | yes (asm part) | yes |
| Memory and code size | compact source, slow; about 38 KB free (C64) | larger code; runtime about 2-4 KB | as C | smallest |
| Display: 40-col text, sprites, charset | yes (POKEs) | yes | yes | yes |
| Display: 80-col VDC | BASIC 7.0 prints directly | conio videomode() |
yes | manual VDC access |
| Sound (SID) | POKE / BASIC 7 SOUND/PLAY |
yes | yes | yes |
| Disk I/O (SEQ/PRG) | OPEN/GET#/INPUT# (slow byte loops) |
cbm_open/cbm_read, stdio |
yes | KERNAL calls |
| C64/C128 portability | separate dialects | one source, -t c64 / -t c128 |
yes | per-target code |
| Maintainability | easy to read, hard to structure | good | good, if the asm stays small | hardest |
| On-machine editing | yes | no | no | only with a native assembler |
Commodore 1351 mouse (mouse-1351) |
no (conflict) | cc65 driver c64_1351_mou / c128_1351_mou |
yes | yes (link the cc65 driver or read the SID POT registers) |
The capability names in the brief (smooth-animation, raster-interrupts, vdc-80col, mouse-1351, ...)
are checked against these limits by the validator. A user override that breaks one is reported
as a conflict, and the user decides which constraint to change.
All configurations marked verified were built, run headless in VICE and checked automatically
by tests/Run-FoundryTests.ps1 on 2026-11-26 with:
cl65 V2.19 - Git cc3c40c (Windows x64 snapshot)x64sc, x128, c1541, petcat)| Recipe | Language | Platform / display | Emulator | Status | Exercised by (test brief) |
|---|---|---|---|---|---|
cc65 |
C | c64 / vicii-40 | x64sc |
verified | dual-native (c64) |
cc65 |
C + ca65 | c64 / vicii-40 | x64sc |
verified | examples/traffic-control-64 |
cc65 |
ca65 | c64 / vicii-40 | x64sc |
verified | override-asm |
cc65 |
C | c128-native / vicii-40 | x128 -40col |
verified | multi-display-c (c128-40) |
cc65 |
ca65 | c128-native / vicii-40 | x128 -40col |
verified | c128-40-asm |
cc65 |
C | c128-native / vdc-80 | x128 -80col |
verified | examples/c128-text-viewer (disk autostart), dual-native, multi-display-c |
cc65 |
C | c128-c64mode / vicii-40 | x128 -go64 |
verified | dual-c64mode-c |
cc65 |
C + 1351 mouse | c64 / vicii-40 | x64sc -controlport1device 3 |
verified (driver install; pointer movement is a manual check) | mouse-1351-c |
cc65 |
ca65 | c128-native / vdc-80 | x128 -80col |
unverified | validation plan in the catalog |
basic-petcat |
BASIC V2 | c64 / vicii-40 | x64sc |
verified | dual-c64mode (c64) |
basic-petcat |
BASIC V2 | c128-c64mode / vicii-40 | x128 -go64 |
verified | dual-c64mode (c128-in-c64-mode) |
basic-petcat |
BASIC 7.0 | c128-native / vicii-40 | x128 -40col |
verified | c128-40-basic7 |
basic-petcat |
BASIC 7.0 | c128-native / vdc-80 | x128 -80col |
verified | c128-80-basic7 (mode flag automated; text by screenshot) |
basic-onboard |
BASIC V2 | c64 / vicii-40 | x64sc (disk load-and-run) |
verified | on-commodore-basic + transfer round trip |
basic-onboard |
BASIC 7.0 | c128-native / vdc-80 | x128 -80col (disk load-and-run) |
verified | on-commodore-basic7 |
basic-onboard |
BASIC 7.0 | c128-native / vicii-40 | x128 -40col |
verified | same scripts as the 80-column row and c128-40-basic7 |
asm-onboard |
native assembler | c64, c128-native | x64sc / x128 |
unverified | unverified-onboard-asm (generation and manual-only path) |
Combinations of mixed C + ca65 on the C128 use the same build command as the C and ca65 rows above.
docs/verification-log.md lists exactly what ran and its results.
| Recipe | Build | Run (VICE) |
|---|---|---|
cc65 C / mixed |
cl65 -t c64\|c128 -g -O -I src -o build/x.prg -Ln build/x.lbl -m build/x.map src/*.c src/*.s |
x64sc -autostart build/x.prg or x128 -40col\|-80col -autostart build/x.prg |
cc65 asm only |
cl65 -t c64 -C c64-asm.cfg -u __EXEHDR__ -g -o build/x.prg -Ln build/x.lbl src/*.s (c128: c128-asm.cfg) |
same |
basic-petcat |
petcat -w2 -f -o build/x.prg -- src/main.bas (7.0: -w70) |
same |
| disk image | c1541 -format "name,id" d64 build/x.d64 -write build/x.prg x -write sample.petscii "sample,s" |
x128 -80col -autostart build/x.d64 |
| on-Commodore BASIC | to target: tools/to-commodore.ps1 (petcat + c1541); back: tools/from-commodore.ps1 (c1541 -read, petcat -nh -2 -f -o src/main.bas -- x.prg) |
LOAD"X",8 then RUN |
C128 note: cc65 c128 programs load at $1C01. videomode(VIDEOMODE_80COL) switches conio to the VDC. A C64 started with x128 -go64 reports the C64 KERNAL reset vector $FCE2, which the smoke test checks.
| Option | Used for | Source |
|---|---|---|
-autostart <file> |
Load and run a PRG or disk image | VICE manual 2.1 |
-autostartprgmode 1 |
Inject the PRG into RAM (fast, no drive) | VICE manual 6.3.2 |
-8 <image> |
Attach a disk image to drive 8 | VICE -help |
-40col / -80col / -go64 |
x128 display key / C64 mode | VICE manual 7.2.4.2 |
-pal / -ntsc |
Video standard | VICE -help |
-controlport1device 3 |
Commodore 1351 mouse in control port 1; added automatically for briefs with the mouse-1351 capability |
x64sc -help / x128 -help (VICE 3.10) |
-mouse / hotkey Alt+M |
Grab the host mouse so it drives the emulated 1351 (GTK3 default hotkey; the WinVICE legacy hotkey file uses Alt+Q) | x64sc -help; hotkeys/hotkeys.vhk in the VICE 3.10 install |
-limitcycles <n> |
Exit after n cycles (smoke runs end this way) | VICE manual 2.1 |
-exitscreenshot / -exitscreenshotvicii |
Screenshot on exit (x128: VDC / VIC-II window) | VICE manual 2.1 |
-moncommands <file> |
Monitor commands at start (tracepoints) | VICE manual 6.17.2 |
monitor trace exec\|store <addr>, command <n> "...", bsave |
Save memory when the program reaches its ready point, without stopping | VICE manual 12.7-12.8 |
-config <file> -default -warp -minimized -sounddev dummy |
Isolated, fast, quiet smoke runs | VICE manual 2.1, 6.4.2, 6.9.2, 8.1.1 |
Observed in VICE 3.10 (not stated in the manual): c1541 -write <file> "<name>,s" writes a SEQ
file; petcat -w... needs -f to overwrite an existing output; the x128 -exitscreenshot
captures the VDC window when started with -80col. When VICE quits through -limitcycles, its exit
code is 1; smoke scripts ignore it and judge only the saved memory.
The Git repository always stays on the Windows host.
basic-onboard), verified: tools/to-commodore.ps1 tokenizes src/main.bas and writes a D64 transfer image. The user attaches it in VICE (or copies it to an SD2IEC / 1541 Ultimate / real floppy), types LOAD"NAME",8, RUN, edits, and SAVE"@0:NAME",8. tools/from-commodore.ps1 reads the PRG back and detokenizes it into src/main.bas for review and commit. The round trip is byte-identical (tested). Disk format: D64. Target-side tool: the ROM BASIC screen editor.asm-onboard), unverified: same transfer mechanics; the target-side tool is supplied by the user (for example Turbo Macro Pro). No smoke automation; docs/toolchain.md in the generated repo carries the validation plan. Mark the combination verified in the catalog once the plan has been carried out, with date and versions.When a brief needs a combination marked unverified (or one missing from the catalog):
docs/toolchain.md shows status unverified and the validation plan. tools/smoke.ps1 reports MANUAL (exit 3) for that target.tests/briefs/), run tests/Run-FoundryTests.ps1, and set "status": "verified" in the catalog.VICE is the default reference. Real hardware is recorded in the brief (testing.realHardware)
when the user asks for it or a requirement depends on it (exact timing, a specific drive, REU,
RGBI monitor). Every generated docs/manual-tests.md includes transfer and load steps for real
machines. Results are recorded only when the user reports them.
VICE-Team.VICE.GTK3)Powered by TurnKey Linux.