You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1125 lines
57KB

  1. {
  2. "schemaVersion": "1.0",
  3. "status": "approved",
  4. "interview": {
  5. "startedOn": "2026-12-03",
  6. "stage": "review",
  7. "openQuestions": [],
  8. "notes": [
  9. "User asked for assembly; the hi-res vs multicolour bitmap question decides colour placement and must be settled in the details stage.",
  10. "Round 2: user added blue water, chose NTSC only, people move all over the map, 16 people, multicolour mode, light red for people, and redraw only where people move.",
  11. "Round 3: water and stone block people (user said \"yes block\"; stone included by the agent's reading, to confirm at review). Map layout fully procedural. User said \"just cursor keys to control\"; what the keys do is being clarified.",
  12. "Round 4: cursor keys scroll a bigger world (2x2 screens), pixel-smooth scrolling in the first release (user chose it over block steps), people spread over the world, SPACE = new world. Destination left at the default.",
  13. "Spec approved 2026-12-03 without changes; D1 (stone blocks people) left open at its default.",
  14. "2026-12-03 change (approved): 5-line status area below a 20-row map via a raster split (R6); status readout in upper-case ROM text, light red; split task inserted as M3.2, old M3.2/M3.3 renumbered M3.3/M3.4.",
  15. "2026-12-03 change (approved): R3 reworded so that while a scroll rebuild runs people are drawn in the shown buffer during vertical blank; drawing people relative to the view moved from M3.4 to M3.3.",
  16. "2026-12-03 change (approved): background (land, border, status area) changed from brown (colour 9) to light brown: C64 colour 8 shown with VICE's pepto-pal palette, which tools/run.ps1 selects (assumption A8). Tree trunks stay colour 9.",
  17. "2026-12-03 change (approved): people and status text white (colour 1) instead of light red (A1).",
  18. "2026-12-03 change (approved): worn paths instead of roads: the generator makes no roads; new R7 (walk count per cell, +1 per step into the cell, -1 every 60 s; path at 128, back to terrain below 64; dark brown patch); new milestone M5. The unfinished random-road work (M4.2) was dropped at the user's request.",
  19. "2026-12-03 change (approved): people's attributes like D&D: new R8 (six scores per person, 3d6, one byte each, shown only); P steps through the people (a letter key, chosen by the user: the C64 has no Tab key); status line 4 shows the chosen person's scores and their dot blinks; new milestone M6. The 4,000 walk counts moved to $C000 to make room below $4000.",
  20. "2026-12-04 change (approved): the status area shows only the chosen person (number, name, M or F; then the six scores; lines 3-5 blank); title, view position, people-in-view count and key help removed, keys unchanged. Every person gets a random sex (50/50) and a random 2-3 syllable name from male or female syllable lists (up to 10 letters). New task M6.2.",
  21. "2026-12-04 change (approved): a changing number of people: 1-255, 16 in a new world, + adds a person and - removes the last one while running (R2); the people's tables are one 256-byte page per field in free RAM inside the video banks; people are drawn only into the hidden buffer, and with many people the picture updates less often while people keep their speed (R3, 'keep speed, drop frames'); status line 1 shows P001/016 (R8). New milestone M7."
  22. ]
  23. },
  24. "project": {
  25. "name": "Land Map 64",
  26. "slug": "land-map-64",
  27. "idea": "okay I want to start a c64 project in assembly that will procedurally generate a hi res color bitmap of a map of a land with brown land grey stone green grass and trees and black for roads colors. I would like to see if we can add people as tan dots and use buffer fliping to show movent of the people on the map .. you can ask me questions if this is not cleaar",
  28. "summary": "A C64 program written in 6502 assembly that procedurally generates a 2x2-screen landscape world (light brown land, grey stone, green grass and trees, blue water) shown as a multicolour bitmap. The cursor keys scroll the view smoothly across the world. 16 people at first (1-255, + and - change the number), drawn as white dots, wander the world but are blocked by water and stone. Where they walk often they wear dark brown paths into the land, which fade again when they are no longer used. Two bitmap buffers are flipped each update, and only the spots where people move are redrawn.",
  29. "kind": "demo",
  30. "smallestUsefulVersion": "A 2x2-screen world generated from a seed at start-up, shown one screen at a time in multicolour bitmap mode, pixel-smooth scrolling with the cursor keys, 16 white people moving over land, grass, trees and paths (not water or stone), flicker-free via two flipped buffers with only the people's spots redrawn, and SPACE for a new world."
  31. },
  32. "targets": [
  33. {
  34. "display": "vicii-40",
  35. "name": "Commodore 64 (NTSC)",
  36. "video": "ntsc",
  37. "id": "c64",
  38. "expectedBehavior": "Autostarts, shows a short generating message, then a multicolour bitmap view of the world (20 rows): light brown land, grey stone, green grass and trees, blue water, with the chosen person's name, sex and scores in the text area below it. White dots move on the land and wear paths into it. Cursor keys scroll the view smoothly; SPACE generates a new world.",
  39. "platform": "c64"
  40. }
  41. ],
  42. "dualTarget": null,
  43. "buildLocation": "windows-cross",
  44. "onCommodore": null,
  45. "testing": {
  46. "emulator": "vice",
  47. "realHardware": {
  48. "requested": false,
  49. "reason": ""
  50. }
  51. },
  52. "scope": {
  53. "firstRelease": "A generated 2x2-screen world in multicolour bitmap mode with pixel-smooth cursor-key scrolling, a 5-line status area below the map, 16 moving people blocked by water and stone, double-buffered partial redraw, and SPACE for a new world.",
  54. "inScope": [
  55. "Procedural generation of a 2x2-screen world (80x50 cells of 4x8 multicolour pixels) from a seed",
  56. "Terrain colours: light brown land (background), grey stone, green grass and trees, blue water, dark brown paths worn in by the people",
  57. "Pixel-smooth scrolling of the view with the cursor keys, using the VIC-II fine-scroll registers and a double-buffered coarse shift",
  58. "16 people as white dots (one multicolour pixel each), spread over the world, blocked by water and stone; only those in view are drawn",
  59. "Two bitmap buffers flipped once per update; only the bytes under people are restored and redrawn between scroll steps",
  60. "SPACE generates a new world",
  61. "A 5-line text status area below a 20-row map, using a raster split: the chosen person's number, name, sex and scores",
  62. "A random name, a sex (M or F) and six D&D-style scores (3d6 each) per person, shown one person at a time; P picks the next person, whose dot blinks",
  63. "NTSC timing"
  64. ],
  65. "outOfScope": [
  66. "PAL support",
  67. "Worlds larger than 2x2 screens",
  68. "Sprites for people",
  69. "People with goals, pathfinding or interaction; scores that change how people behave",
  70. "Sound and music",
  71. "Saving worlds or seeds",
  72. "Joystick",
  73. "Real-hardware testing (VICE only)",
  74. "C128 native mode"
  75. ]
  76. },
  77. "requirements": [
  78. {
  79. "title": "Generated 2x2-screen world",
  80. "text": "At start-up the program generates a world of 2x2 screens (80x50 cells of 4x8 multicolour pixels) from a seed. Terrain covers the whole world: lakes, meadows with trees, rocky outcrops and open light brown land are spread all over it, not gathered in a few places. Each world rolls its own mix of the four terrain kinds (land, grass and trees, water, stone), so one world may be wet and another rocky. No roads are generated: paths appear where the people walk (R7). The view shows a 40x20-cell window of it in multicolour bitmap mode, above the status area (R6).",
  81. "priority": "must",
  82. "acceptance": [
  83. "After autostart in VICE (x64sc, NTSC) the map view appears within 15 seconds",
  84. "Scrolling across the whole world shows all four terrain colours: light brown, grey, green and blue",
  85. "The generated world has no roads: only land, grass and trees, stone and water (paths are worn in later, R7)",
  86. "No colour clash: every 4x8 cell shows only its intended colours",
  87. "Every 40x20-cell view of the world shows at least three of the four terrain kinds (land, grass and trees, water, stone), each covering at least 8 cells",
  88. "Different worlds have different terrain mixes: over several SPACE presses, some worlds are visibly wetter, rockier or greener than others"
  89. ],
  90. "id": "R1",
  91. "capabilities": [
  92. "smooth-animation"
  93. ]
  94. },
  95. {
  96. "title": "Moving people, 1 to 255",
  97. "text": "A new world starts with 16 people, each a single white multicolour pixel, spread over the world; they move on their own. Water and stone block them: they walk only on land, grass, trees and paths. People inside the view are drawn; others keep moving unseen. While the program runs, + adds a person (a new name, sex and scores, on a random walkable spot) and - removes the last one; there are always 1 to 255 people. Held, + and - repeat. Each person steps every 8 frames however many people there are; with many people the picture updates less often instead (R3).",
  98. "priority": "must",
  99. "acceptance": [
  100. "Scrolling around a new world shows 16 white dots in total",
  101. "Each visible dot moves at least once per second, also with 255 people",
  102. "No dot ever enters a blue (water) or grey (stone) pixel",
  103. "+ adds one person (up to 255) and - removes the last one (down to 1); held, they repeat; the status line shows the new number of people (R8.2) and the new person's dot appears and moves"
  104. ],
  105. "id": "R2",
  106. "capabilities": [
  107. "smooth-animation"
  108. ]
  109. },
  110. {
  111. "title": "Flicker-free double buffering, partial redraw",
  112. "text": "People are drawn only into the hidden bitmap buffer, never into the shown one, and the hidden buffer is flipped into view during vertical blank. While the view scrolls, the hidden buffer is rebuilt for the next scroll step; once it is complete the people are drawn into it, and it is flipped in at the scroll step. Each update restores only the bitmap bytes under people at their previous positions in that buffer and draws them at their new positions; apart from the scroll rebuild and changed path cells, the rest of the map is never redrawn. (Since M7; before, people were drawn into the shown buffer during vertical blank while a rebuild ran, which does not scale beyond about 16 people.) With up to about 64 people every frame is a new picture; with more, the main loop takes longer than a frame and the picture and the scroll update every 2nd to 4th frame, while people keep their walking speed.",
  113. "priority": "must",
  114. "acceptance": [
  115. "No flicker or tearing of the dots is visible in VICE at normal speed",
  116. "After 5 minutes of running and scrolling, the map has no leftover white trails or damaged terrain",
  117. "With 16 people a people update (restore, draw, flip) completes within one NTSC frame; with more people the vertical blank work still ends before the first map line, and people keep their speed"
  118. ],
  119. "id": "R3",
  120. "capabilities": [
  121. "smooth-animation",
  122. "raster-interrupts"
  123. ]
  124. },
  125. {
  126. "title": "New world on SPACE",
  127. "text": "Pressing SPACE generates and shows a different world, with 16 people placed on it (however many there were before).",
  128. "priority": "must",
  129. "acceptance": [
  130. "Pressing SPACE replaces the world with a visibly different one",
  131. "People keep moving on the new world"
  132. ],
  133. "id": "R4",
  134. "capabilities": [
  135. "keyboard-input"
  136. ]
  137. },
  138. {
  139. "id": "R5",
  140. "title": "Pixel-smooth scrolling",
  141. "priority": "must",
  142. "text": "Holding a cursor key scrolls the view across the world one hires pixel per frame in that direction, using the VIC-II fine-scroll registers ($D016, $D011) in the 20-row map area in 38-column mode. Every 8 pixels the view shifts by one cell: the hidden buffer is rebuilt from the world data over the preceding frames and flipped in at the moment the fine scroll wraps. Scrolling stops at the world edges. The status area below the map does not scroll.",
  143. "acceptance": [
  144. "Holding a cursor key moves the view smoothly with no jumps, tearing or half-drawn rows",
  145. "The view stops at all four world edges",
  146. "People and terrain stay aligned while scrolling (no dot drifts across terrain)",
  147. "Scrolling across the whole world in each direction never shows wrong or stale cells"
  148. ],
  149. "capabilities": [
  150. "keyboard-input",
  151. "smooth-animation",
  152. "raster-interrupts"
  153. ]
  154. },
  155. {
  156. "id": "R6",
  157. "title": "Status area",
  158. "priority": "must",
  159. "text": "Below the 20-row map, five rows of 40-column text in the upper-case ROM font, white on light brown. Since M6.2 they show only the chosen person (R8): line 1 their number, name and sex, line 2 their six scores; lines 3-5 are blank. (Before M6.2 they showed the title, the view position, the number of people in view, the scores and key help; the user removed those.) A raster split switches the VIC-II from multicolour bitmap to text at the boundary every frame; the text area never scrolls.",
  160. "acceptance": [
  161. "The status lines appear below the map whenever the map is shown: line 1 the chosen person's number, name and M or F, line 2 their six scores (R8)",
  162. "The status text and the split line between map and text stay steady (no jitter, flicker or tearing) while people move and while the view scrolls",
  163. "Lines 3-5 are blank: no title, view position, people-in-view count or key help is shown"
  164. ],
  165. "capabilities": [
  166. "raster-interrupts"
  167. ]
  168. },
  169. {
  170. "title": "Worn paths",
  171. "text": "Every cell of the world keeps a walk count. Each time a person steps into a cell its count goes up by one; every 60 seconds every count goes down by one. A land, grass or tree cell whose count reaches 128 becomes a path: a worn, dark brown patch. A path whose count falls below 64 turns back into the terrain it was. People walk on paths like on land. The counts and paths belong to the world: SPACE starts again with no paths.",
  172. "priority": "must",
  173. "acceptance": [
  174. "Each time a person steps into a cell, that cell's walk count goes up by one (it stops at 255)",
  175. "Every 60 seconds every walk count goes down by one (it stops at 0)",
  176. "A land, grass or tree cell whose count reaches 128 becomes a dark brown path cell; the change appears in the map without flicker, tearing, trails or wrong pixels, also while the view scrolls and while people stand on it",
  177. "A path cell whose count falls below 64 turns back into the land, grass or trees it was",
  178. "People walk on paths; water and stone never become paths; SPACE gives a new world with all counts at 0 and no paths"
  179. ],
  180. "id": "R7",
  181. "capabilities": [
  182. "smooth-animation"
  183. ]
  184. },
  185. {
  186. "id": "R8",
  187. "title": "People's attributes",
  188. "priority": "must",
  189. "text": "Each person is male or female (at random, 50/50) and has a random name of two or three syllables from a male or female syllable list (up to 10 letters), and six scores, as in D&D: strength, dexterity, constitution, intelligence, wisdom and charisma. Each score is rolled with three six-sided dice (3-18) when a world is made, and stored as one byte. For now the scores are only shown; they do not change how people move. The status lines show one person at a time: P001/016 ALDRIC M (person number / number of people, since M7) and STR12 DEX09 CON15 INT10 WIS08 CHA13. Each press of P shows the next person (after the last comes 1); holding P does not repeat. If the shown person is removed with -, the new last person is shown. The chosen person's dot blinks on the map (left out for 16 of every 32 frames) so it can be found. SPACE rolls new names, sexes and scores for the new world and shows person 1.",
  190. "acceptance": [
  191. "Every person has six scores from 3 to 18, rolled 3d6 when a world is made; SPACE rolls new ones",
  192. "Status line 1 shows the chosen person's number and the number of people (P001/016), name and M or F; line 2 their six scores, labelled STR, DEX, CON, INT, WIS and CHA; person 1 is shown after a new world",
  193. "Each press of P shows the next person, after the last comes 1; a held P counts once",
  194. "The chosen person's dot blinks about twice a second, wherever they are in the view, without disturbing the map or the other dots",
  195. "The scores do not change how people move",
  196. "Every person is male or female at random and has a random name of 2-3 syllables (up to 10 letters) from the male or female syllable list; SPACE gives new ones"
  197. ],
  198. "capabilities": [
  199. "keyboard-input"
  200. ]
  201. }
  202. ],
  203. "design": {
  204. "visuals": {
  205. "value": "Multicolour bitmap mode (160x200, double-wide pixels) for a 38-column map area 20 cell rows high, smooth-scrolled; below it a raster split to a fixed 5-row, 40-column text status area in the upper-case ROM font, white on light brown. Light brown (C64 colour 8 (named orange), which VICE's pepto-pal palette (measured from PAL C64s) shows as light brown; tools/run.ps1 starts VICE with that palette) is the shared background colour; white is the colour-RAM colour in every cell, so people can be drawn anywhere without colour clash and colour RAM never needs scrolling. The two screen-RAM colours of each 4x8 cell come from grey (stone), green (grass and trees), blue (water) and dark brown (paths). The world is stored as one tile byte per 4x8 cell; each tile is drawn from a small set of 8-byte pixel patterns (including edge and corner patterns) so shorelines look natural.",
  206. "source": "user"
  207. },
  208. "budgets": {
  209. "value": "NTSC: 60 Hz, 17,095 cycles per frame (263 lines x 65 cycles, the NTSC VIC-II 6567R8 that x64sc emulates). Per frame: fine-scroll update, one slice of the hidden-buffer rebuild (about 7,600 bytes of bitmap and screen RAM, 20 map rows plus one partial row, spread over 8 frames), and restoring and redrawing visible people; together under one frame. World data about 4 KB; two bitmap buffers with their screen RAM about 18 KB. World generation may take several seconds (since M4.1 about 4 seconds, behind the generating message; the map is ready about 7 seconds after power-on).",
  210. "source": "default"
  211. },
  212. "sound": {
  213. "source": "default",
  214. "value": "None in the first release."
  215. },
  216. "persistence": {
  217. "source": "default",
  218. "value": "None. Maps and seeds are not saved."
  219. },
  220. "fileFormats": {
  221. "source": "default",
  222. "value": "None. A single PRG."
  223. },
  224. "peripherals": {
  225. "source": "default",
  226. "value": "Keyboard only. No disk access after loading, no joystick."
  227. },
  228. "controls": {
  229. "value": "Cursor keys scroll the view. On a real C64 these are CRSR down/right, plus SHIFT for up/left; the keyboard matrix is read directly so a key held down scrolls continuously. VICE maps the PC arrow keys to them. SPACE generates a new world. P shows the next person's scores (R8; a letter key, chosen by the user: the C64 has no Tab key). Known limitation (accepted by the user, 2026-12-03): SHIFT applies to both cursor keys, so only the Right + Down and Left + Up diagonals work; Up + Right and Down + Left come out as Up + Left (VICE sends the PC Up and Left arrows as SHIFT + CRSR).",
  230. "source": "user"
  231. },
  232. "other": [
  233. {
  234. "topic": "Memory layout",
  235. "value": "Buffer A in VIC bank 1 and buffer B in VIC bank 2, each with its own 8 KB bitmap and 1 KB screen RAM; flipping switches bank bits in $DD00 during vertical blank. Each bank also holds a 1 KB status text screen (bank + $0400) and a 2 KB copy of the upper-case ROM font (bank + $0800), at the same offsets so a flip still changes only $DD00. Colour RAM is shared and constant (white), which is also the status text colour. Program, tables and variables (world tiles, people and their scores) lie below $4000; the 4,000 walk counts (R7) use the free RAM at $C000-$CF9F.",
  236. "source": "default"
  237. },
  238. {
  239. "topic": "Rebuild source",
  240. "value": "The hidden buffer is rebuilt from the tile world, never copied from the visible buffer, so people's dots are never copied into the new view. Since M4.1 the rebuild first puts back the bytes under the buffer's own people and then skips every cell whose tile is already drawn there (most cells, as terrain comes in areas), so textured terrain everywhere still rebuilds within 8 frames.",
  241. "source": "default"
  242. },
  243. {
  244. "topic": "Seed",
  245. "value": "The seed comes from the CIA timer at start-up and at each SPACE press. It is not shown or saved in the first release.",
  246. "source": "default"
  247. }
  248. ]
  249. },
  250. "capabilities": [
  251. "keyboard-input",
  252. "smooth-animation",
  253. "raster-interrupts"
  254. ],
  255. "assumptions": [
  256. {
  257. "text": "People and status text are white (C64 colour 1) so the dots stand out (changed from light red, colour 10, by the user on 2026-12-03).",
  258. "status": "confirmed",
  259. "id": "A1"
  260. },
  261. {
  262. "text": "The map generator keeps every 4x8 cell to at most two of grey, green, blue and black (besides the light brown background). Where three would meet, for example a road along a shoreline next to grass, it changes the least-represented colour in that cell.",
  263. "status": "default",
  264. "id": "A2"
  265. },
  266. {
  267. "id": "A3",
  268. "text": "Each buffer has its own bitmap and screen RAM in a separate VIC bank (banks 1 and 2), flipped via $DD00 in vertical blank; colour RAM is shared and constant.",
  269. "status": "unverified"
  270. },
  271. {
  272. "id": "A4",
  273. "text": "Rebuilding the hidden buffer from tile patterns (about 7,600 bytes) can be spread over 8 frames alongside the people update within the NTSC frame budget, which allows 1 pixel per frame scrolling.",
  274. "status": "partly met (measured 2026-12-03 in VICE x64sc NTSC, accepted by the user): since M4.1 the rebuild skips cells already drawn; in the long tour 99% of rebuilds take 6-8 frames, 13 of 1,928 take 9 or more, pausing the scroll for one frame in 0.8% of scrolling frames (M3.4, before terrain everywhere: 1.7%); not noticeable in use"
  275. },
  276. {
  277. "id": "A5",
  278. "text": "The smoke test cannot read a bitmap. The program writes a status mirror (\"LAND MAP 64\", \"MAP READY\") into the unused text screen at $0400 once the first view is shown; the smoke test checks that text, and the VICE screenshot shows the map.",
  279. "status": "default"
  280. },
  281. {
  282. "id": "A6",
  283. "text": "The catalog has no bitmap-graphics capability. Multicolour bitmap mode and VIC bank switching are documented in Mapping the Commodore 64 (53265 $D011, 53270 $D016, 53272 $D018, 56576 $DD00); a catalog update is proposed separately.",
  284. "status": "unverified"
  285. },
  286. {
  287. "id": "A7",
  288. "text": "Switching from the fine-scrolled multicolour bitmap to fixed text (and back at the top of the frame) with raster interrupts gives a steady split in VICE x64sc NTSC with no bad-line glitches at the boundary, whatever the map's vertical fine-scroll value.",
  289. "status": "unverified"
  290. },
  291. {
  292. "id": "A8",
  293. "text": "C64 colour 8 looks light brown in VICE with the pepto-pal palette, which tools/run.ps1 selects. With VICE's default NTSC colours it looks salmon-orange, and on real hardware it depends on the machine and TV.",
  294. "status": "default"
  295. }
  296. ],
  297. "openDecisions": [
  298. {
  299. "id": "D1",
  300. "topic": "Stone blocking",
  301. "question": "Should stone block people as well as water?",
  302. "default": "Yes: both water and stone block people (agent's reading of \"yes block\").",
  303. "status": "open"
  304. }
  305. ],
  306. "toolchain": {
  307. "recipe": "cc65",
  308. "language": "asm-ca65",
  309. "recommended": {
  310. "recipe": "cc65",
  311. "language": "asm-ca65"
  312. },
  313. "reasons": [
  314. "The user asked for assembly, and the program is timing-critical: pixel-smooth bitmap scrolling plus a 9 KB buffer rebuild and people updates must fit in each 1/60 s NTSC frame.",
  315. "ca65 (the cc65 suite assembler) on Windows with VICE x64sc is a verified Foundry combination with an automated smoke test.",
  316. "Assembly gives exact control of VIC-II bank switching, fine-scroll registers and raster timing, which the flip and the scroll depend on."
  317. ],
  318. "alternatives": [
  319. {
  320. "option": "C (cc65)",
  321. "whyNot": "Too slow for the per-frame buffer rebuild and smooth scrolling; it would need most hot paths in assembly anyway."
  322. },
  323. {
  324. "option": "Mixed C + ca65",
  325. "whyNot": "Possible for world generation, but nearly all the work is timing-critical, and the user asked for assembly."
  326. },
  327. {
  328. "option": "BASIC V2",
  329. "whyNot": "Far too slow for bitmap drawing, let alone smooth scrolling."
  330. }
  331. ],
  332. "override": null,
  333. "assumptionsToVerify": [
  334. "A3: buffer flip via $DD00 bank bits in vertical blank shows no tearing on NTSC in VICE.",
  335. "A4: measure the per-frame cost of the rebuild slice plus the people update with a border-colour timing bar before M3 is finished.",
  336. "A6: multicolour bitmap and bank switching behave as documented in Mapping the Commodore 64.",
  337. "A7: the bitmap-to-text raster split stays steady under vertical fine scroll in VICE x64sc NTSC."
  338. ]
  339. },
  340. "starter": {
  341. "screenTitle": "LAND MAP 64",
  342. "expectedScreen": "After a short generating message, VICE shows the top-left view of the generated terrain in multicolour bitmap mode (20 rows), with white dots (people) walking on it; below it, person 1's number, name and sex (M or F) and their six scores, the other three lines blank. SPACE generates a different map. The hidden text screen shows \"LAND MAP 64\" and \"MAP READY\".",
  343. "smokeChecks": [
  344. {
  345. "row": 0,
  346. "col": 0,
  347. "text": "LAND MAP 64",
  348. "description": "Title in the status mirror"
  349. },
  350. {
  351. "row": 2,
  352. "col": 0,
  353. "text": "MAP READY",
  354. "description": "World generation reached its ready point"
  355. }
  356. ],
  357. "requirements": [
  358. "R3"
  359. ],
  360. "filesDir": "land-map-64-files"
  361. },
  362. "milestones": [
  363. {
  364. "id": "M1",
  365. "title": "World generation and static view",
  366. "goal": "A different 2x2-screen world appears at start-up and on SPACE, shown one screen at a time in multicolour bitmap mode.",
  367. "tasks": [
  368. {
  369. "id": "M1.1",
  370. "text": "Tile set: 8-byte multicolour patterns for land, grass, trees, stone, water and roads, including edge and corner patterns, with per-tile screen-RAM colour pairs.",
  371. "requirements": [
  372. "R1"
  373. ],
  374. "outcome": "Tile table and a test view showing every tile",
  375. "check": "Manual test MT1.1"
  376. },
  377. {
  378. "id": "M1.2",
  379. "text": "Seeded generator: 80x50 tile world with water, stone, grass with trees, and connected roads; enforce the at-most-two-colours-per-cell rule.",
  380. "requirements": [
  381. "R1"
  382. ],
  383. "outcome": "World generated in RAM",
  384. "check": "Manual test MT1.1; smoke test reports MAP READY"
  385. },
  386. {
  387. "id": "M1.3",
  388. "text": "Render the top-left screen of the world into the visible buffer; SPACE regenerates.",
  389. "requirements": [
  390. "R1",
  391. "R4"
  392. ],
  393. "outcome": "PRG showing a generated world; SPACE makes a new one",
  394. "check": "Manual test MT1.2"
  395. }
  396. ],
  397. "manualTests": [
  398. {
  399. "id": "MT1.1",
  400. "title": "Generated world looks right",
  401. "target": "c64",
  402. "setup": "VICE x64sc, NTSC (-ntsc), warp off.",
  403. "steps": [
  404. "Wait for the map view.",
  405. "Inspect the screen."
  406. ],
  407. "expected": [
  408. "Light brown land, grey stone, green grass and trees, blue water and black roads are visible (some may be off-screen until M3)",
  409. "Roads are continuous",
  410. "No colour clash in any cell"
  411. ],
  412. "requirements": [
  413. "R1"
  414. ]
  415. },
  416. {
  417. "id": "MT1.2",
  418. "title": "New world on SPACE",
  419. "target": "c64",
  420. "setup": "VICE x64sc, NTSC (-ntsc), warp off.",
  421. "steps": [
  422. "Note the map.",
  423. "Press SPACE and wait."
  424. ],
  425. "expected": [
  426. "A visibly different map appears"
  427. ],
  428. "requirements": [
  429. "R4"
  430. ]
  431. }
  432. ]
  433. },
  434. {
  435. "id": "M2",
  436. "title": "People and double-buffered partial redraw",
  437. "goal": "16 white people move without flicker, blocked by water and stone, with only their spots redrawn.",
  438. "tasks": [
  439. {
  440. "id": "M2.1",
  441. "text": "People table (world x, y, direction) and movement rules; water and stone block.",
  442. "requirements": [
  443. "R2"
  444. ],
  445. "outcome": "People move in world data",
  446. "check": "Manual test MT2.1"
  447. },
  448. {
  449. "id": "M2.2",
  450. "text": "Per-buffer saved-byte lists: restore the bytes under people from two frames ago, draw people in view, flip in vertical blank.",
  451. "requirements": [
  452. "R3"
  453. ],
  454. "outcome": "Flicker-free moving dots, no trails",
  455. "check": "Manual tests MT2.1 and MT2.2"
  456. }
  457. ],
  458. "manualTests": [
  459. {
  460. "id": "MT2.1",
  461. "title": "People move and are blocked",
  462. "target": "c64",
  463. "setup": "VICE x64sc, NTSC (-ntsc), warp off.",
  464. "steps": [
  465. "Watch the visible dots for 30 seconds."
  466. ],
  467. "expected": [
  468. "Dots move at least once per second",
  469. "No dot enters blue or grey pixels"
  470. ],
  471. "requirements": [
  472. "R2"
  473. ]
  474. },
  475. {
  476. "id": "MT2.2",
  477. "title": "No flicker, no trails",
  478. "target": "c64",
  479. "setup": "VICE x64sc, NTSC (-ntsc), warp off.",
  480. "steps": [
  481. "Let it run for 5 minutes.",
  482. "Inspect the map closely."
  483. ],
  484. "expected": [
  485. "No flicker",
  486. "No white trails or damaged terrain"
  487. ],
  488. "requirements": [
  489. "R3"
  490. ]
  491. }
  492. ]
  493. },
  494. {
  495. "id": "M3",
  496. "title": "Split screen and pixel-smooth scrolling",
  497. "goal": "A fixed 5-line status area sits below a 20-row map, and the cursor keys scroll the map smoothly across the whole world with people kept in place.",
  498. "tasks": [
  499. {
  500. "id": "M3.1",
  501. "text": "Keyboard matrix reading for the cursor keys with SHIFT, held-key repeat.",
  502. "requirements": [
  503. "R5"
  504. ],
  505. "outcome": "Scroll direction from keys",
  506. "check": "Manual test MT3.1"
  507. },
  508. {
  509. "id": "M3.2",
  510. "text": "Split screen: raster interrupts switch to text below a 20-row map and back at the top of the frame; status text screen and ROM font copy in both banks; status lines with the people-in-view count.",
  511. "requirements": [
  512. "R6",
  513. "R1"
  514. ],
  515. "outcome": "Steady 20-row map with 5 status lines below",
  516. "check": "Manual test MT3.3"
  517. },
  518. {
  519. "id": "M3.3",
  520. "text": "Fine scroll via $D016/$D011 in the 38-column, 20-row map area; rebuild the hidden buffer from tiles over 8 frames and flip on wrap; stop at world edges; show the view position in the status area; draw people relative to the view (in the shown buffer during vertical blank while a rebuild runs).",
  521. "requirements": [
  522. "R5",
  523. "R3",
  524. "R6",
  525. "R2"
  526. ],
  527. "outcome": "Smooth scrolling across the world under a fixed status area, people in place",
  528. "check": "Manual tests MT3.1, MT3.2 and MT3.3"
  529. },
  530. {
  531. "id": "M3.4",
  532. "text": "Check that people stay aligned with the terrain over long scrolling runs; measure the frame budget with a border-colour timing bar.",
  533. "requirements": [
  534. "R2",
  535. "R3",
  536. "R5",
  537. "R6"
  538. ],
  539. "outcome": "People stay aligned with terrain over long runs; budget measured",
  540. "check": "Manual tests MT3.2, MT3.3 and MT3.4"
  541. }
  542. ],
  543. "manualTests": [
  544. {
  545. "id": "MT3.1",
  546. "title": "Smooth scrolling",
  547. "target": "c64",
  548. "setup": "VICE x64sc, NTSC (-ntsc), warp off.",
  549. "steps": [
  550. "Hold each cursor key (with SHIFT for up and left) until the view stops."
  551. ],
  552. "expected": [
  553. "Smooth movement, no jumps or tearing",
  554. "The view stops at each world edge",
  555. "All five terrain colours seen across the world"
  556. ],
  557. "requirements": [
  558. "R1",
  559. "R5"
  560. ]
  561. },
  562. {
  563. "id": "MT3.2",
  564. "title": "People while scrolling",
  565. "target": "c64",
  566. "setup": "VICE x64sc, NTSC (-ntsc), warp off.",
  567. "steps": [
  568. "Scroll slowly past several people.",
  569. "From M3.4: scroll around the whole world for about 5 minutes, then stop with several people in view and watch them for a minute.",
  570. "From M3.4: with many dots in view near the top of the map, scroll left and right."
  571. ],
  572. "expected": [
  573. "Dots stay on the terrain they walk on, also after long runs",
  574. "16 dots in total across the world",
  575. "No trails or damaged terrain left behind, even after 5 minutes",
  576. "No flicker or tearing of the dots near the top of the map"
  577. ],
  578. "requirements": [
  579. "R2",
  580. "R3",
  581. "R5"
  582. ]
  583. },
  584. {
  585. "id": "MT3.3",
  586. "title": "Status area",
  587. "target": "c64",
  588. "setup": "VICE x64sc, NTSC (-ntsc), warp off.",
  589. "steps": [
  590. "Wait for the map view and read the text below the map.",
  591. "Watch the boundary between map and text for 30 seconds while the dots move.",
  592. "Tap SPACE and watch the boundary while the new map is shown.",
  593. "From M3.3: hold each cursor key and watch the text and the boundary while the map scrolls."
  594. ],
  595. "expected": [
  596. "Five white upper-case status lines below a 20-row map",
  597. "The people-in-view number equals the dots visible on the map",
  598. "The boundary is clean and steady: no flicker, jitter or garbage",
  599. "From M3.3: the text never moves while the map scrolls and VIEW X/Y follow the scrolling",
  600. "Since M6.2 the status area shows only the chosen person (MT6.2): the title, VIEW X/Y and the people-in-view number are gone"
  601. ],
  602. "requirements": [
  603. "R6",
  604. "R1"
  605. ]
  606. },
  607. {
  608. "id": "MT3.4",
  609. "title": "Frame budget timing bar",
  610. "target": "c64",
  611. "setup": "VICE x64sc, NTSC (-ntsc), warp off. Start with pwsh -File tools/run.ps1 -Target c64 -TimingBar (separate timing build).",
  612. "steps": [
  613. "Leave the view still for a few seconds.",
  614. "Hold a cursor key and watch the border while the map scrolls."
  615. ],
  616. "expected": [
  617. "Still: mostly light brown border with a thin red stripe at the status split",
  618. "Scrolling: cyan (rebuild) down to near the bottom, red stripe at the split, a little light brown below",
  619. "The border pattern is steady from frame to frame (no rolling): every frame is kept"
  620. ],
  621. "requirements": [
  622. "R3",
  623. "R5"
  624. ]
  625. }
  626. ]
  627. },
  628. {
  629. "id": "M4",
  630. "title": "Terrain all over the world",
  631. "goal": "Lakes, meadows with trees, rocky outcrops and open land are spread over the whole world, in a different mix for each world, with roads crossing water on bridges.",
  632. "tasks": [
  633. {
  634. "id": "M4.1",
  635. "text": "Region generator: each world rolls its own terrain mix; jittered seeds on a grid give every class areas all over the world, shaped by noisy distances, smoothing and removal of thin water; shores from the neighbours; trees on grass. Roads stay a grid of two rows and two columns and become bridges over water. The scroll rebuild skips cells whose tile is already drawn, to keep the 8-frame rebuild with textured terrain everywhere.",
  636. "requirements": [
  637. "R1",
  638. "R2",
  639. "R5"
  640. ],
  641. "outcome": "Varied terrain in every view; SPACE gives a different mix",
  642. "check": "pwsh -File tools/check-world.ps1 -Runs 10; tools/check-scroll.ps1 -Long; manual test MT4.1"
  643. }
  644. ],
  645. "manualTests": [
  646. {
  647. "id": "MT4.1",
  648. "title": "Terrain everywhere, a different mix per world",
  649. "target": "c64",
  650. "setup": "VICE x64sc, NTSC (-ntsc), pepto-pal palette (tools/run.ps1 selects it), warp off.",
  651. "steps": [
  652. "Wait for the map and look at the first view.",
  653. "Scroll over the whole world.",
  654. "Tap SPACE five or six times and compare the first views.",
  655. "Scroll along a road that crosses a lake; watch the dots near water and stone for a minute.",
  656. "Scroll in every direction across busy terrain."
  657. ],
  658. "expected": [
  659. "Every view mixes land, meadows with trees, rock and lakes with shores, spread over the whole world",
  660. "Each new world has a different mix",
  661. "Two roads across and two down run the whole world and cross water on bridges, with no gaps",
  662. "No colour clash or stray pixels",
  663. "Dots never step onto water or stone",
  664. "Scrolling stays smooth over textured terrain"
  665. ],
  666. "requirements": [
  667. "R1",
  668. "R2",
  669. "R5"
  670. ]
  671. }
  672. ]
  673. },
  674. {
  675. "id": "M5",
  676. "title": "Worn paths",
  677. "goal": "People wear paths into the land where they walk often; unused paths fade.",
  678. "tasks": [
  679. {
  680. "id": "M5.1",
  681. "text": "Remove road generation: the world has land, grass and trees, stone and water only; tools/check-world.ps1 fails on any road or bridge tile.",
  682. "requirements": [
  683. "R1"
  684. ],
  685. "outcome": "Worlds without roads",
  686. "check": "pwsh -File tools/check-world.ps1 -Runs 10; manual test MT5.1"
  687. },
  688. {
  689. "id": "M5.2",
  690. "text": "Worn paths: a walk count per cell (4,000 bytes), +1 when a person steps into a cell, -1 for every cell every 60 seconds (10 cells every 9 frames); at 128 a land, grass or tree cell becomes a path tile (dark brown patch, one per terrain so it can turn back), below 64 it turns back. Changed cells are redrawn in each buffer while it is hidden (people's dots and saved bytes kept), so the shown map never tears; a buffer in the middle of a rebuild draws the rest of it in full and redraws the changed cells once it is ready (before M6.1: restarted the rebuild). A test build (PATH_TEST: path at 4, back below 2, one count less every 400 frames) makes it checkable.",
  691. "requirements": [
  692. "R7",
  693. "R2",
  694. "R3",
  695. "R5"
  696. ],
  697. "outcome": "Busy cells turn into paths, unused paths fade",
  698. "check": "pwsh -File tools/check-paths.ps1; tools/check-scroll.ps1 -Long; tools/check-scroll.ps1 -Long -PathTest; manual test MT5.2"
  699. }
  700. ],
  701. "manualTests": [
  702. {
  703. "id": "MT5.1",
  704. "title": "No roads",
  705. "target": "c64",
  706. "setup": "VICE x64sc, NTSC (-ntsc), pepto-pal palette (tools/run.ps1 selects it), warp off.",
  707. "steps": [
  708. "Wait for the map and scroll over the whole world.",
  709. "Tap SPACE a few times and look again."
  710. ],
  711. "expected": [
  712. "No black roads or bridges anywhere; land, meadows with trees, rock and lakes as before",
  713. "People walk as before"
  714. ],
  715. "requirements": [
  716. "R1"
  717. ]
  718. },
  719. {
  720. "id": "MT5.2",
  721. "title": "Worn paths",
  722. "target": "c64",
  723. "setup": "VICE x64sc, NTSC (-ntsc), pepto-pal palette, warp off. The test build (pwsh -File tools/run.ps1 -PathTest) makes paths at 4 steps and fades them below 2 (one count less every 400 frames, about 7 seconds); the normal build needs minutes of walking.",
  724. "steps": [
  725. "Start the test build and watch the first view for a minute without keys.",
  726. "Scroll around while paths appear and fade.",
  727. "Press SPACE."
  728. ],
  729. "expected": [
  730. "Dark brown patches appear where the dots walk most and fade back to the terrain they were (land, grass or trees) when unused",
  731. "Never on water or stone",
  732. "No flicker, tearing, trails or wrong pixels when a cell changes, also while scrolling and where a dot stands on it",
  733. "Dots keep walking over paths",
  734. "SPACE gives a new world with no paths"
  735. ],
  736. "requirements": [
  737. "R7"
  738. ]
  739. }
  740. ]
  741. },
  742. {
  743. "id": "M6",
  744. "title": "People's attributes",
  745. "goal": "Every person has a name, a sex and D&D-style scores that the player can look at one person at a time.",
  746. "tasks": [
  747. {
  748. "id": "M6.1",
  749. "text": "Six scores per person (STR, DEX, CON, INT, WIS, CHA; 3d6, one byte each, 96 bytes), rolled with the people for every new world. P (new press only) steps to the next person; status line 4 shows 'Pnn' and the six scores, rewritten only when the person changes, on a frame without the status update. The chosen person's dot is left out of the people draw for 16 of every 32 frames (draw_skip, which the checks read to know which dots to expect). The walk counts move to $C000 to make room below $4000.",
  750. "requirements": [
  751. "R8",
  752. "R6",
  753. "R2",
  754. "R3"
  755. ],
  756. "outcome": "Scores per person, shown with P; the chosen person blinks",
  757. "check": "pwsh -File tools/check-keys.ps1 (P held: one step; scores 3-18; status line 4 matches); tools/check-people.ps1; tools/check-scroll.ps1 -Long; manual test MT6.1"
  758. },
  759. {
  760. "id": "M6.2",
  761. "text": "Status area shows only the chosen person, who gets a random name and sex: sex 50/50 (people_sex), name from a start syllable, half the time a middle one, and a male or female end syllable (people_name, 10 letters, space padded), rolled with the scores. Row 20 'Pnn' + name + M/F, row 21 the scores, rows 22-24 blank; the title, view position, people-in-view count and key help (and the per-frame status update and people-in-view count) are removed. All keys still work.",
  762. "requirements": [
  763. "R8",
  764. "R6"
  765. ],
  766. "outcome": "Status area shows the chosen person's name, sex and scores only",
  767. "check": "pwsh -File tools/check-keys.ps1 (names 3-10 letters, sex 0/1, rows 20-21 match the shown person); tools/check-split.ps1 (rows 20-21 lit, 22-24 blank, person 01 in both banks); tools/smoke.ps1; manual test MT6.2"
  768. }
  769. ],
  770. "manualTests": [
  771. {
  772. "id": "MT6.1",
  773. "title": "People's attributes",
  774. "target": "c64",
  775. "setup": "VICE x64sc, NTSC (-ntsc), pepto-pal palette (tools/run.ps1 selects it), warp off.",
  776. "steps": [
  777. "Wait for the map and read status line 4.",
  778. "Press P a few times, then hold P for a second.",
  779. "Press P until person 16, then once more.",
  780. "Scroll while a person is chosen.",
  781. "Press SPACE."
  782. ],
  783. "expected": [
  784. "Line 4 reads like P01 STR12 DEX09 CON15 INT10 WIS08 CHA13, every score 3-18",
  785. "Each press shows the next person with different scores; holding P moves on only once",
  786. "After P16 comes P01",
  787. "The chosen person's dot blinks about twice a second when in view; the map and the other dots stay steady, also while scrolling",
  788. "SPACE gives a new world with new scores and shows P01"
  789. ],
  790. "requirements": [
  791. "R8",
  792. "R6"
  793. ]
  794. },
  795. {
  796. "id": "MT6.2",
  797. "title": "Names, sex and the person-only status area",
  798. "target": "c64",
  799. "setup": "VICE x64sc, NTSC (-ntsc), pepto-pal palette (tools/run.ps1 selects it), warp off.",
  800. "steps": [
  801. "Wait for the map and read the two lines below it.",
  802. "Press P through all 16 people.",
  803. "Scroll around, then press SPACE."
  804. ],
  805. "expected": [
  806. "Line 1 reads like P01 ALDRIC M: number, a made-up name of up to 10 letters, then M or F; line 2 the six scores; the other three lines are blank",
  807. "No title, view position, people-in-view count or key help anywhere below the map",
  808. "Each person has their own name; both M and F appear among the 16",
  809. "Cursor keys, SPACE and P still work; SPACE gives new names, sexes and scores and shows P01"
  810. ],
  811. "requirements": [
  812. "R8",
  813. "R6"
  814. ]
  815. }
  816. ]
  817. },
  818. {
  819. "id": "M7",
  820. "title": "A changing number of people",
  821. "goal": "1 to 255 people, 16 in a new world; + and - change the number while the program runs; people keep their speed.",
  822. "tasks": [
  823. {
  824. "id": "M7.1",
  825. "text": "Memory layout that grows: every people table becomes one 256-byte page per field, indexed by person 0-254 (positions $4C00-$4FFF; direction, sex and the six scores $5800-$5FFF; saved bytes under the dots of both buffers $8C00-$91FF; the ten name letters $9200-$9BFF), so no table moves when the number changes. people_count (1-255) replaces the fixed 16 everywhere: placing, moving (every 8th person per frame), drawing, P, the status line.",
  826. "requirements": [
  827. "R2",
  828. "R8"
  829. ],
  830. "outcome": "Same program with 16 people, its tables ready for up to 255",
  831. "check": "pwsh -File tools/smoke.ps1; tools/check-world.ps1; tools/check-keys.ps1; tools/check-people.ps1; tools/check-split.ps1; tools/check-paths.ps1"
  832. },
  833. {
  834. "id": "M7.2",
  835. "text": "People are drawn only into the hidden buffer (people_update in the main loop, once the hidden buffer is complete; buf_dots marks it) and flipped in at the next vertical blank, which now does no people work. A scroll step that crosses a cell waits until the rebuilt buffer has its people too.",
  836. "requirements": [
  837. "R3",
  838. "R5"
  839. ],
  840. "outcome": "Vertical blank work no longer grows with the number of people",
  841. "check": "pwsh -File tools/check-people.ps1 (both buffers hold the clean map plus the right dots); tools/check-scroll.ps1 -Long and -Long -PathTest"
  842. },
  843. {
  844. "id": "M7.3",
  845. "text": "+ adds a person at a random walkable spot with a new name, sex and scores (up to 255); - removes the last one (down to 1; if they were shown, the new last person is shown). Held, both repeat after 30 frames, then every 5th frame. Status line 1 shows P001/016 (person / number of people). The raster IRQ counts frames, so when the main loop takes longer than a frame the people catch up on the missed frames (up to 4) and keep their speed.",
  846. "requirements": [
  847. "R2",
  848. "R8",
  849. "R3"
  850. ],
  851. "outcome": "+ and - change the number of people while it runs",
  852. "check": "pwsh -File tools/check-keys.ps1 (+ held: the count climbs past 40; - held: stops at 1; status shows P001/nnn); tools/check-people.ps1 -People 255; tools/smoke.ps1; manual test MT7.1"
  853. }
  854. ],
  855. "manualTests": [
  856. {
  857. "id": "MT7.1",
  858. "title": "Adding and removing people",
  859. "target": "c64",
  860. "setup": "VICE x64sc, NTSC (-ntsc), pepto-pal palette (tools/run.ps1 selects it), warp off.",
  861. "steps": [
  862. "Wait for the map and read status line 1.",
  863. "Press + a few times, then hold + until the count passes 100.",
  864. "Hold + until it stops, then scroll around.",
  865. "Press P a few times, then hold - until it stops.",
  866. "Press SPACE."
  867. ],
  868. "expected": [
  869. "Line 1 reads like P001/016 ALDRIC M",
  870. "Each + press adds one to the count and a new dot appears somewhere in the world; held, the count climbs about 12 a second",
  871. "The count stops at 255; the map gets less smooth, but people walk at the same speed and no trails or broken terrain appear",
  872. "The - key removes people down to P001/001; the shown person changes to the last one when they are removed",
  873. "SPACE gives a new world with 16 people: P001/016"
  874. ],
  875. "requirements": [
  876. "R2",
  877. "R3",
  878. "R8"
  879. ]
  880. }
  881. ]
  882. }
  883. ],
  884. "destination": "C:\\Development\\Commodore\\Foundry Projects\\land-map-64",
  885. "approval": {
  886. "approvedBy": "Daniel Covington",
  887. "approvedOn": "2026-12-03"
  888. },
  889. "generated": {
  890. "by": "C64/C128 Dev Foundry",
  891. "foundryVersion": "1.0",
  892. "on": "2026-12-03",
  893. "fromBrief": "land-map-64.json",
  894. "foundryRoot": "C:\\Development\\Commodore\\foundry"
  895. },
  896. "resolved": {
  897. "_note": "Generated by the C64/C128 Dev Foundry from the approved brief and catalog. tools/*.ps1 read this section; edit it (and docs/toolchain.md) together if the build changes.",
  898. "recipe": "cc65",
  899. "recipeTitle": "Windows cross-development with cc65 (C, ca65 assembly or mixed) and VICE",
  900. "language": "asm-ca65",
  901. "languageTitle": "6502 assembly (ca65)",
  902. "starter": "cc65-asm",
  903. "capabilityFiles": [],
  904. "tools": [
  905. {
  906. "id": "cl65",
  907. "executable": "cl65",
  908. "package": "cc65",
  909. "purpose": "cc65 compile/assemble/link driver (C and ca65 assembly)",
  910. "verifiedVersion": "cl65 V2.19 - Git cc3c40c",
  911. "versionArgs": [
  912. "--version"
  913. ],
  914. "envVar": "CC65_HOME",
  915. "searchPaths": [
  916. "C:\\cc65\\bin",
  917. "C:\\Program Files\\cc65\\bin"
  918. ],
  919. "install": {
  920. "source": "https://cc65.github.io/getting-started.html",
  921. "download": "https://sourceforge.net/projects/cc65/files/cc65-snapshot-win64.zip",
  922. "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."
  923. },
  924. "docs": [
  925. "https://cc65.github.io/doc/cl65.html",
  926. "https://cc65.github.io/doc/ca65.html"
  927. ],
  928. "requiredFor": [
  929. "build of target c64 (tools/build.ps1)"
  930. ]
  931. },
  932. {
  933. "id": "x64sc",
  934. "executable": "x64sc",
  935. "package": "vice",
  936. "purpose": "VICE cycle-exact Commodore 64 emulator",
  937. "verifiedVersion": "VICE 3.10",
  938. "versionArgs": [],
  939. "envVar": "VICE_HOME",
  940. "searchPaths": [
  941. "C:\\Program Files\\GTK3VICE-*\\bin",
  942. "C:\\Program Files\\SDL2VICE-*",
  943. "%LOCALAPPDATA%\\Microsoft\\WinGet\\Packages\\VICE-Team.VICE.GTK3*\\*\\bin"
  944. ],
  945. "install": {
  946. "source": "https://vice-emu.sourceforge.io/index.html#download",
  947. "download": "https://sourceforge.net/projects/vice-emu/files/releases/binaries/windows/GTK3VICE-3.10-win64.zip/download",
  948. "firstCommand": "winget install --id VICE-Team.VICE.GTK3 -e (or unzip GTK3VICE-3.10-win64.zip and set VICE_HOME to the unzipped folder)"
  949. },
  950. "docs": [
  951. "https://vice-emu.sourceforge.io/vice_2.html#SEC50",
  952. "https://vice-emu.sourceforge.io/vice_6.html",
  953. "https://vice-emu.sourceforge.io/vice_12.html"
  954. ],
  955. "requiredFor": [
  956. "run and smoke test of target c64 (tools/run.ps1, tools/smoke.ps1)"
  957. ]
  958. }
  959. ],
  960. "targets": [
  961. {
  962. "id": "c64",
  963. "name": "Commodore 64 (NTSC)",
  964. "platform": "c64",
  965. "display": "vicii-40",
  966. "video": "ntsc",
  967. "videoSupport": "ntsc",
  968. "artifact": "build/land-map-64.prg",
  969. "expectedBehavior": "Autostarts, shows a short generating message, then a multicolour bitmap view of the world (20 rows): light brown land, grey stone, green grass and trees, blue water, with the chosen person's name, sex and scores in the text area below it. White dots move on the land and wear paths into it. Cursor keys scroll the view smoothly; SPACE generates a new world.",
  970. "build": {
  971. "kind": "cc65",
  972. "cc65Target": "c64",
  973. "config": "c64-asm.cfg",
  974. "defines": [
  975. "FOUNDRY_TARGET_C64"
  976. ],
  977. "sourceDirs": [
  978. "src"
  979. ],
  980. "labels": "build/land-map-64.lbl",
  981. "map": "build/land-map-64.map"
  982. },
  983. "disk": null,
  984. "emulator": {
  985. "binary": "x64sc",
  986. "args": [
  987. "-VICIIextpal",
  988. "-VICIIpalette",
  989. "pepto-pal.vpl"
  990. ],
  991. "autostart": "prg",
  992. "notes": []
  993. },
  994. "smoke": {
  995. "ready": {
  996. "kind": "exec",
  997. "symbol": "smoke_ready",
  998. "address": null
  999. },
  1000. "limitCycles": 30000000,
  1001. "dumps": [
  1002. {
  1003. "name": "screen",
  1004. "symbol": null,
  1005. "address": "0400",
  1006. "length": 1000
  1007. },
  1008. {
  1009. "name": "world",
  1010. "symbol": "world_tiles",
  1011. "address": null,
  1012. "length": 4000
  1013. },
  1014. {
  1015. "name": "vector",
  1016. "symbol": null,
  1017. "address": "FFFC",
  1018. "length": 2
  1019. },
  1020. {
  1021. "name": "status-a",
  1022. "symbol": null,
  1023. "address": "4720",
  1024. "length": 200
  1025. },
  1026. {
  1027. "name": "status-b",
  1028. "symbol": null,
  1029. "address": "8720",
  1030. "length": 200
  1031. }
  1032. ],
  1033. "checks": [
  1034. {
  1035. "dump": "screen",
  1036. "offset": 0,
  1037. "text": "LAND MAP 64",
  1038. "encoding": "screen-upper",
  1039. "bytes": null,
  1040. "description": "Title in the status mirror"
  1041. },
  1042. {
  1043. "dump": "screen",
  1044. "offset": 80,
  1045. "text": "MAP READY",
  1046. "encoding": "screen-upper",
  1047. "bytes": null,
  1048. "description": "World generation reached its ready point"
  1049. },
  1050. {
  1051. "dump": "vector",
  1052. "offset": 0,
  1053. "text": null,
  1054. "encoding": null,
  1055. "bytes": "E2 FC",
  1056. "description": "C64 KERNAL reset vector at $FFFC (machine is in C64 mode)"
  1057. },
  1058. {
  1059. "dump": "status-a",
  1060. "offset": 0,
  1061. "text": "P001/016 ",
  1062. "encoding": "screen-upper",
  1063. "bytes": null,
  1064. "description": "Status row 20 in buffer A: person 1 (number, then name and sex, R8)"
  1065. },
  1066. {
  1067. "dump": "status-a",
  1068. "offset": 40,
  1069. "text": "STR",
  1070. "encoding": "screen-upper",
  1071. "bytes": null,
  1072. "description": "Status row 21 in buffer A: person 1's scores"
  1073. },
  1074. {
  1075. "dump": "status-a",
  1076. "offset": 80,
  1077. "text": " ",
  1078. "encoding": "screen-upper",
  1079. "bytes": null,
  1080. "description": "Status row 22 in buffer A is blank (M6.2)"
  1081. },
  1082. {
  1083. "dump": "status-b",
  1084. "offset": 0,
  1085. "text": "P001/016 ",
  1086. "encoding": "screen-upper",
  1087. "bytes": null,
  1088. "description": "Status row 20 in buffer B's text screen: person 1"
  1089. },
  1090. {
  1091. "dump": "status-b",
  1092. "offset": 40,
  1093. "text": "STR",
  1094. "encoding": "screen-upper",
  1095. "bytes": null,
  1096. "description": "Status row 21 in buffer B: person 1's scores"
  1097. }
  1098. ],
  1099. "expectedScreen": "After a short generating message, VICE shows the top-left view of the generated terrain in multicolour bitmap mode (20 rows), with white dots (people) walking on it; below it, person 1's number, name and sex (M or F) and their six scores, the other three lines blank. SPACE generates a different map. The hidden text screen shows \"LAND MAP 64\" and \"MAP READY\"."
  1100. },
  1101. "recipeStatus": "verified",
  1102. "validationPlan": []
  1103. }
  1104. ],
  1105. "onCommodore": null,
  1106. "catalogVerifiedOn": "2026-11-26",
  1107. "catalogVerifiedWith": {
  1108. "cc65": "cl65 V2.19 - Git cc3c40c (Windows x64 snapshot)",
  1109. "vice": "VICE 3.10 GTK3 win64 (x64sc, x128, c1541, petcat)",
  1110. "powershell": "PowerShell 7.6.7",
  1111. "git": "git 2.53.0.windows.1",
  1112. "os": "Windows 11 Pro 10.0.26200"
  1113. },
  1114. "sources": [
  1115. "https://cc65.github.io/doc/cl65.html",
  1116. "https://cc65.github.io/doc/c64.html#toc4.2",
  1117. "https://cc65.github.io/doc/c128.html",
  1118. "https://cc65.github.io/doc/ca65.html",
  1119. "https://vice-emu.sourceforge.io/vice_2.html#SEC50",
  1120. "https://vice-emu.sourceforge.io/vice_7.html#SEC194",
  1121. "https://vice-emu.sourceforge.io/vice_12.html"
  1122. ]
  1123. }
  1124. }

Powered by TurnKey Linux.