Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

283 rindas
19KB

  1. {
  2. "catalogVersion": "1.0",
  3. "verifiedOn": "2026-11-26",
  4. "verifiedWith": {
  5. "cc65": "cl65 V2.19 - Git cc3c40c (Windows x64 snapshot)",
  6. "vice": "VICE 3.10 GTK3 win64 (x64sc, x128, c1541, petcat)",
  7. "powershell": "PowerShell 7.6.7",
  8. "git": "git 2.53.0.windows.1",
  9. "os": "Windows 11 Pro 10.0.26200"
  10. },
  11. "tools": {
  12. "cl65": {
  13. "package": "cc65",
  14. "executable": "cl65",
  15. "purpose": "cc65 compile/assemble/link driver (C and ca65 assembly)",
  16. "verifiedVersion": "cl65 V2.19 - Git cc3c40c",
  17. "versionArgs": ["--version"],
  18. "envVar": "CC65_HOME",
  19. "searchPaths": ["C:\\cc65\\bin", "C:\\Program Files\\cc65\\bin"],
  20. "install": {
  21. "source": "https://cc65.github.io/getting-started.html",
  22. "download": "https://sourceforge.net/projects/cc65/files/cc65-snapshot-win64.zip",
  23. "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."
  24. },
  25. "docs": ["https://cc65.github.io/doc/cl65.html", "https://cc65.github.io/doc/ca65.html"]
  26. },
  27. "x64sc": {
  28. "package": "vice",
  29. "executable": "x64sc",
  30. "purpose": "VICE cycle-exact Commodore 64 emulator",
  31. "verifiedVersion": "VICE 3.10",
  32. "versionArgs": [],
  33. "envVar": "VICE_HOME",
  34. "searchPaths": ["C:\\Program Files\\GTK3VICE-*\\bin", "C:\\Program Files\\SDL2VICE-*", "%LOCALAPPDATA%\\Microsoft\\WinGet\\Packages\\VICE-Team.VICE.GTK3*\\*\\bin"],
  35. "install": {
  36. "source": "https://vice-emu.sourceforge.io/index.html#download",
  37. "download": "https://sourceforge.net/projects/vice-emu/files/releases/binaries/windows/GTK3VICE-3.10-win64.zip/download",
  38. "firstCommand": "winget install --id VICE-Team.VICE.GTK3 -e (or unzip GTK3VICE-3.10-win64.zip and set VICE_HOME to the unzipped folder)"
  39. },
  40. "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"]
  41. },
  42. "x128": {
  43. "package": "vice",
  44. "executable": "x128",
  45. "purpose": "VICE Commodore 128 emulator (VIC-II 40-column and VDC 80-column)",
  46. "verifiedVersion": "VICE 3.10",
  47. "versionArgs": [],
  48. "envVar": "VICE_HOME",
  49. "searchPaths": ["C:\\Program Files\\GTK3VICE-*\\bin", "C:\\Program Files\\SDL2VICE-*", "%LOCALAPPDATA%\\Microsoft\\WinGet\\Packages\\VICE-Team.VICE.GTK3*\\*\\bin"],
  50. "install": {
  51. "source": "https://vice-emu.sourceforge.io/index.html#download",
  52. "download": "https://sourceforge.net/projects/vice-emu/files/releases/binaries/windows/GTK3VICE-3.10-win64.zip/download",
  53. "firstCommand": "winget install --id VICE-Team.VICE.GTK3 -e (or unzip GTK3VICE-3.10-win64.zip and set VICE_HOME to the unzipped folder)"
  54. },
  55. "docs": ["https://vice-emu.sourceforge.io/vice_7.html#SEC194", "https://vice-emu.sourceforge.io/vice_2.html#SEC50"]
  56. },
  57. "c1541": {
  58. "package": "vice",
  59. "executable": "c1541",
  60. "purpose": "VICE disk image tool (create D64/D71/D81, copy PRG and SEQ files in and out)",
  61. "verifiedVersion": "c1541 (VICE 3.10)",
  62. "versionArgs": ["-version"],
  63. "envVar": "VICE_HOME",
  64. "searchPaths": ["C:\\Program Files\\GTK3VICE-*\\bin", "C:\\Program Files\\SDL2VICE-*", "%LOCALAPPDATA%\\Microsoft\\WinGet\\Packages\\VICE-Team.VICE.GTK3*\\*\\bin"],
  65. "install": {
  66. "source": "https://vice-emu.sourceforge.io/index.html#download",
  67. "download": "https://sourceforge.net/projects/vice-emu/files/releases/binaries/windows/GTK3VICE-3.10-win64.zip/download",
  68. "firstCommand": "winget install --id VICE-Team.VICE.GTK3 -e (c1541 ships with VICE)"
  69. },
  70. "docs": ["https://vice-emu.sourceforge.io/vice_14.html"]
  71. },
  72. "petcat": {
  73. "package": "vice",
  74. "executable": "petcat",
  75. "purpose": "VICE BASIC tokenizer/detokenizer (text listing <-> PRG)",
  76. "verifiedVersion": "petcat (VICE 3.10)",
  77. "versionArgs": ["-version"],
  78. "envVar": "VICE_HOME",
  79. "searchPaths": ["C:\\Program Files\\GTK3VICE-*\\bin", "C:\\Program Files\\SDL2VICE-*", "%LOCALAPPDATA%\\Microsoft\\WinGet\\Packages\\VICE-Team.VICE.GTK3*\\*\\bin"],
  80. "install": {
  81. "source": "https://vice-emu.sourceforge.io/index.html#download",
  82. "download": "https://sourceforge.net/projects/vice-emu/files/releases/binaries/windows/GTK3VICE-3.10-win64.zip/download",
  83. "firstCommand": "winget install --id VICE-Team.VICE.GTK3 -e (petcat ships with VICE)"
  84. },
  85. "docs": ["https://vice-emu.sourceforge.io/vice_16.html"]
  86. }
  87. },
  88. "capabilities": {
  89. "text-ui": "Text screens, menus and status lines (PRINT / conio / KERNAL CHROUT).",
  90. "keyboard-input": "Reading keys from the keyboard.",
  91. "joystick-input": "Reading a joystick in control port 1 or 2.",
  92. "disk-seq-io": "Opening and reading or writing sequential (SEQ) or program files on a disk drive.",
  93. "sprites": "VIC-II hardware sprites.",
  94. "custom-charset": "Redefined character sets.",
  95. "sid-sound": "Sound effects or music through the SID.",
  96. "smooth-animation": "Several objects updated every frame or every few frames in a steady frame-locked loop.",
  97. "raster-interrupts": "Cycle-sensitive raster interrupts, raster splits or stable raster timing.",
  98. "vdc-80col": "Native C128 80-column output through the VDC (8563/8568).",
  99. "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."
  100. },
  101. "capabilityFiles": {
  102. "mouse-1351": {
  103. "dir": "capabilities/mouse-1351",
  104. "languages": ["c", "mixed-c-asm"],
  105. "platforms": ["c64", "c128-c64mode"],
  106. "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.",
  107. "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"]
  108. }
  109. },
  110. "capabilityEmulator": {
  111. "mouse-1351": {
  112. "args": ["-controlport1device", "3"],
  113. "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).",
  114. "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)"]
  115. }
  116. },
  117. "platforms": {
  118. "c64": { "title": "Commodore 64", "displays": ["vicii-40"] },
  119. "c128-native": { "title": "Commodore 128 in native C128 mode", "displays": ["vicii-40", "vdc-80"] },
  120. "c128-c64mode": { "title": "Commodore 128 running in C64 mode", "displays": ["vicii-40"] }
  121. },
  122. "displays": {
  123. "vicii-40": "VIC-II 40x25 text/graphics screen (C64, or C128 40-column)",
  124. "vdc-80": "VDC 80x25 text screen (C128 native 80-column, RGBI monitor)"
  125. },
  126. "languages": {
  127. "basic-v2": {
  128. "title": "Commodore BASIC V2 (C64 ROM BASIC)",
  129. "platforms": ["c64", "c128-c64mode"],
  130. "capabilities": ["text-ui", "keyboard-input", "joystick-input", "disk-seq-io", "sprites", "custom-charset", "sid-sound"],
  131. "screenEncoding": "screen-upper",
  132. "strengths": "No compiler needed; editable on the machine itself; quickest to change.",
  133. "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."
  134. },
  135. "basic-7": {
  136. "title": "Commodore BASIC 7.0 (C128 ROM BASIC)",
  137. "platforms": ["c128-native"],
  138. "capabilities": ["text-ui", "keyboard-input", "joystick-input", "disk-seq-io", "sprites", "custom-charset", "sid-sound", "vdc-80col"],
  139. "screenEncoding": "screen-upper",
  140. "strengths": "Structured loops, SPRITE/SOUND/PLAY/GRAPHIC commands, 80-column text with no extra code; editable on the C128.",
  141. "limits": "Interpreted and slow for real-time games; C128 native mode only. No 1351 mouse driver (proportional mouse reading needs per-frame POT sampling)."
  142. },
  143. "c": {
  144. "title": "C (cc65)",
  145. "platforms": ["c64", "c128-native", "c128-c64mode"],
  146. "capabilities": ["text-ui", "keyboard-input", "joystick-input", "disk-seq-io", "sprites", "custom-charset", "sid-sound", "smooth-animation", "vdc-80col", "mouse-1351"],
  147. "screenEncoding": "screen-mixed",
  148. "strengths": "Readable, portable between C64 and C128 with #ifdef, conio/cbm file I/O library, much faster than BASIC.",
  149. "limits": "Larger and slower code than hand-written assembly; not suitable for cycle-exact raster work without assembly help."
  150. },
  151. "asm-ca65": {
  152. "title": "6502 assembly (ca65)",
  153. "platforms": ["c64", "c128-native", "c128-c64mode"],
  154. "capabilities": ["text-ui", "keyboard-input", "joystick-input", "disk-seq-io", "sprites", "custom-charset", "sid-sound", "smooth-animation", "raster-interrupts", "vdc-80col", "mouse-1351"],
  155. "screenEncoding": "screen-upper",
  156. "strengths": "Full control of timing and memory; smallest and fastest code.",
  157. "limits": "Most effort to write, review and change."
  158. },
  159. "mixed-c-asm": {
  160. "title": "C (cc65) with ca65 assembly modules",
  161. "platforms": ["c64", "c128-native", "c128-c64mode"],
  162. "capabilities": ["text-ui", "keyboard-input", "joystick-input", "disk-seq-io", "sprites", "custom-charset", "sid-sound", "smooth-animation", "raster-interrupts", "vdc-80col", "mouse-1351"],
  163. "screenEncoding": "screen-mixed",
  164. "strengths": "Game/app logic in C, timing-critical subsystems (frame sync, raster IRQs, inner loops) in assembly.",
  165. "limits": "Two languages and the cc65 calling convention to keep straight."
  166. },
  167. "asm-onboard": {
  168. "title": "6502 assembly written and assembled on the Commodore (native assembler)",
  169. "platforms": ["c64", "c128-native"],
  170. "capabilities": ["text-ui", "keyboard-input", "joystick-input", "disk-seq-io", "sprites", "custom-charset", "sid-sound", "smooth-animation", "raster-interrupts", "vdc-80col", "mouse-1351"],
  171. "screenEncoding": "screen-upper",
  172. "strengths": "Authentic on-machine workflow.",
  173. "limits": "Depends on a user-supplied native assembler; source lives in the assembler's own file format."
  174. }
  175. },
  176. "recipes": {
  177. "cc65": {
  178. "title": "Windows cross-development with cc65 (C, ca65 assembly or mixed) and VICE",
  179. "buildLocations": ["windows-cross"],
  180. "buildKind": "cc65",
  181. "languages": ["c", "asm-ca65", "mixed-c-asm"],
  182. "tools": ["cl65"],
  183. "starters": { "c": "cc65-c", "mixed-c-asm": "cc65-mixed", "asm-ca65": "cc65-asm" },
  184. "combos": [
  185. { "platform": "c64", "display": "vicii-40", "languages": ["c", "mixed-c-asm", "asm-ca65"], "cc65Target": "c64", "emulator": "x64sc", "emulatorArgs": [], "status": "verified" },
  186. { "platform": "c128-native", "display": "vicii-40", "languages": ["c", "mixed-c-asm", "asm-ca65"], "cc65Target": "c128", "emulator": "x128", "emulatorArgs": ["-40col"], "status": "verified" },
  187. { "platform": "c128-native", "display": "vdc-80", "languages": ["c", "mixed-c-asm"], "cc65Target": "c128", "emulator": "x128", "emulatorArgs": ["-80col"], "status": "verified" },
  188. { "platform": "c128-native", "display": "vdc-80", "languages": ["asm-ca65"], "cc65Target": "c128", "emulator": "x128", "emulatorArgs": ["-80col"], "status": "unverified",
  189. "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."] },
  190. { "platform": "c128-c64mode", "display": "vicii-40", "languages": ["c", "mixed-c-asm", "asm-ca65"], "cc65Target": "c64", "emulator": "x128", "emulatorArgs": ["-go64"], "status": "verified" }
  191. ],
  192. "commands": {
  193. "c": "cl65 -t <c64|c128> -g -O -I src -o build/<name>.prg -Ln build/<name>.lbl -m build/<name>.map src/*.c src/*.s",
  194. "asm-ca65": "cl65 -t <c64|c128> -C <c64|c128>-asm.cfg -u __EXEHDR__ -g -o build/<name>.prg -Ln build/<name>.lbl -m build/<name>.map src/*.s"
  195. },
  196. "sources": [
  197. "https://cc65.github.io/doc/cl65.html",
  198. "https://cc65.github.io/doc/c64.html#toc4.2",
  199. "https://cc65.github.io/doc/c128.html",
  200. "https://cc65.github.io/doc/ca65.html",
  201. "https://vice-emu.sourceforge.io/vice_2.html#SEC50",
  202. "https://vice-emu.sourceforge.io/vice_7.html#SEC194",
  203. "https://vice-emu.sourceforge.io/vice_12.html"
  204. ]
  205. },
  206. "basic-petcat": {
  207. "title": "BASIC written on Windows as a text listing, tokenized with petcat, run in VICE",
  208. "buildLocations": ["windows-cross"],
  209. "buildKind": "petcat",
  210. "languages": ["basic-v2", "basic-7"],
  211. "tools": ["petcat"],
  212. "starters": { "basic-v2": "basic-v2", "basic-7": "basic-7" },
  213. "combos": [
  214. { "platform": "c64", "display": "vicii-40", "languages": ["basic-v2"], "dialect": "2", "emulator": "x64sc", "emulatorArgs": [], "status": "verified" },
  215. { "platform": "c128-c64mode", "display": "vicii-40", "languages": ["basic-v2"], "dialect": "2", "emulator": "x128", "emulatorArgs": ["-go64"], "status": "verified" },
  216. { "platform": "c128-native", "display": "vicii-40", "languages": ["basic-7"], "dialect": "70", "emulator": "x128", "emulatorArgs": ["-40col"], "status": "verified" },
  217. { "platform": "c128-native", "display": "vdc-80", "languages": ["basic-7"], "dialect": "70", "emulator": "x128", "emulatorArgs": ["-80col"], "status": "verified" }
  218. ],
  219. "commands": {
  220. "basic-v2": "petcat -w2 -f -o build/<name>.prg -- src/main.bas",
  221. "basic-7": "petcat -w70 -f -o build/<name>.prg -- src/main.bas"
  222. },
  223. "sources": [
  224. "https://vice-emu.sourceforge.io/vice_16.html",
  225. "https://vice-emu.sourceforge.io/vice_2.html#SEC50",
  226. "https://vice-emu.sourceforge.io/vice_12.html"
  227. ]
  228. },
  229. "basic-onboard": {
  230. "title": "BASIC authored on the Commodore (or in VICE) with the repo kept on the Windows host; transfer by disk image",
  231. "buildLocations": ["on-commodore"],
  232. "buildKind": "petcat",
  233. "languages": ["basic-v2", "basic-7"],
  234. "tools": ["petcat", "c1541"],
  235. "starters": { "basic-v2": "basic-v2", "basic-7": "basic-7" },
  236. "onCommodore": {
  237. "targetTool": "The built-in BASIC screen editor (BASIC V2 on the C64, BASIC 7.0 on the C128)",
  238. "diskFormat": "d64",
  239. "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.",
  240. "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."
  241. },
  242. "combos": [
  243. { "platform": "c64", "display": "vicii-40", "languages": ["basic-v2"], "dialect": "2", "emulator": "x64sc", "emulatorArgs": [], "status": "verified" },
  244. { "platform": "c128-native", "display": "vicii-40", "languages": ["basic-7"], "dialect": "70", "emulator": "x128", "emulatorArgs": ["-40col"], "status": "verified" },
  245. { "platform": "c128-native", "display": "vdc-80", "languages": ["basic-7"], "dialect": "70", "emulator": "x128", "emulatorArgs": ["-80col"], "status": "verified" }
  246. ],
  247. "commands": {
  248. "to-commodore": "petcat -w2 -f -o build/transfer/<name>.prg -- src/main.bas ; c1541 -format \"<name>,fd\" d64 build/transfer/<slug>.d64 -write build/transfer/<name>.prg <name>",
  249. "from-commodore": "c1541 -attach build/transfer/<slug>.d64 -read <name> build/transfer/<name>.prg ; petcat -nh -2 -f -o src/main.bas -- build/transfer/<name>.prg"
  250. },
  251. "sources": [
  252. "https://vice-emu.sourceforge.io/vice_14.html",
  253. "https://vice-emu.sourceforge.io/vice_16.html",
  254. "https://vice-emu.sourceforge.io/vice_2.html#SEC50"
  255. ]
  256. },
  257. "asm-onboard": {
  258. "title": "Assembly written and assembled on the Commodore with a user-supplied native assembler",
  259. "buildLocations": ["on-commodore"],
  260. "buildKind": "none",
  261. "languages": ["asm-onboard"],
  262. "tools": ["c1541"],
  263. "starters": { "asm-onboard": "asm-onboard" },
  264. "onCommodore": {
  265. "targetTool": "A native assembler supplied by the user (for example Turbo Macro Pro on the C64); not bundled or verified by the Foundry",
  266. "diskFormat": "d64",
  267. "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.",
  268. "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/."
  269. },
  270. "combos": [
  271. { "platform": "c64", "display": "vicii-40", "languages": ["asm-onboard"], "emulator": "x64sc", "emulatorArgs": [], "status": "unverified",
  272. "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."] },
  273. { "platform": "c128-native", "display": "vicii-40", "languages": ["asm-onboard"], "emulator": "x128", "emulatorArgs": ["-40col"], "status": "unverified",
  274. "validationPlan": ["Same as the C64 plan, using a C128-native assembler or the C128 MONITOR."] },
  275. { "platform": "c128-native", "display": "vdc-80", "languages": ["asm-onboard"], "emulator": "x128", "emulatorArgs": ["-80col"], "status": "unverified",
  276. "validationPlan": ["Same as the C64 plan, using a C128-native assembler or the C128 MONITOR, in 80-column mode."] }
  277. ],
  278. "commands": {},
  279. "sources": ["https://vice-emu.sourceforge.io/vice_14.html"]
  280. }
  281. }
  282. }

Powered by TurnKey Linux.