"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."
"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).",
"mouse-1351": "Commodore 1351 mouse in proportional mode in control port 1, read by the Foundry's src/mouse1351.s (port 1 selected and settled before POTX/POTY are read). Do not use cc65's c64_1351_mou driver: under VICE 3.10 its pointer wanders with no input. VICE emulates the mouse on control port 1."
},
"capabilityFiles": {
"mouse-1351": {
"dir": "capabilities/mouse-1351",
"languages": ["c", "mixed-c-asm"],
"platforms": ["c64", "c128-c64mode"],
"note": "src/mouse1351.s + src/mouse1351.h: call ms_init() once, then ms_poll() once per frame (IRQs off for about 12 raster lines); ms_x/ms_y = pointer tip 0..319/0..199, ms_buttons = MS_LEFT|MS_RIGHT; sprite 0 is the pointer (shape at $0340, pointer at $07F8). Do not use cc65's c64_1351_mou driver: under VICE 3.10 it reads stale/cross-port POT samples and the pointer wanders with no input.",
"sources": ["stonehold-64 M2.2 (b28dde6): own POT reader after cc65 driver failed", "Foundry verification log 2026-11-26: idle test, cc65 driver 775 pointer moves in 780 frames, mouse1351.s 0 in 810"]
}
},
"capabilityEmulator": {
"mouse-1351": {
"args": ["-controlport1device", "3"],
"note": "Control port 1 = Mouse (1351). Grab the host mouse in VICE with Alt+M (default GTK3 hotkeys; Alt+Q with the WinVICE legacy hotkey file) or start VICE with -mouse; without a grab the C64 pointer does not move. Press Alt+M again to release it. Read the mouse with src/mouse1351.s, not cc65's c64_1351_mou driver (it wanders under VICE 3.10).",
"sources": ["x64sc -help / x128 -help (VICE 3.10): -controlport1device 3 = Mouse (1351); -mouse = Enable mouse grab", "VICE 3.10 hotkeys/hotkeys.vhk: mouse-grab-toggle <Alt>m","https://cc65.github.io/doc/c64.html#toc6.3 (c64-1351.mou: standard mouse in port #0, i.e. control port 1)"]
"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. No 1351 mouse: proportional mouse reading needs per-frame POT sampling and delta tracking that BASIC cannot keep up with."
"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/<target>/screen.png."] },
"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/<slug>.d64 with c1541. Attach that image in VICE (or copy it to a real disk) and LOAD\"<name>\",8 then RUN.",
"targetToHost": "On the Commodore: SAVE\"@0:<name>\",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."
"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/<slug>.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/."
"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."] },