您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

825 行
36KB

  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. ]
  17. },
  18. "project": {
  19. "name": "Land Map 64",
  20. "slug": "land-map-64",
  21. "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",
  22. "summary": "A C64 program written in 6502 assembly that procedurally generates a 2x2-screen landscape world (brown land, grey stone, green grass and trees, black roads, blue water) shown as a multicolour bitmap. The cursor keys scroll the view smoothly across the world. 16 people, drawn as light red dots, wander the world but are blocked by water and stone. Two bitmap buffers are flipped each update, and only the spots where people move are redrawn.",
  23. "kind": "demo",
  24. "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 light red people moving over land, grass, trees and roads (not water or stone), flicker-free via two flipped buffers with only the people's spots redrawn, and SPACE for a new world."
  25. },
  26. "targets": [
  27. {
  28. "display": "vicii-40",
  29. "name": "Commodore 64 (NTSC)",
  30. "video": "ntsc",
  31. "id": "c64",
  32. "expectedBehavior": "Autostarts, shows a short generating message, then a multicolour bitmap view of the world (20 rows): brown land, grey stone, green grass and trees, blue water, black roads, with 5 lines of status text below it. Light red dots move on land and roads. Cursor keys scroll the view smoothly; SPACE generates a new world.",
  33. "platform": "c64"
  34. }
  35. ],
  36. "dualTarget": null,
  37. "buildLocation": "windows-cross",
  38. "onCommodore": null,
  39. "testing": {
  40. "emulator": "vice",
  41. "realHardware": {
  42. "requested": false,
  43. "reason": ""
  44. }
  45. },
  46. "scope": {
  47. "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.",
  48. "inScope": [
  49. "Procedural generation of a 2x2-screen world (80x50 cells of 4x8 multicolour pixels) from a seed",
  50. "Terrain colours: brown land (background), grey stone, green grass and trees, blue water, black roads that connect",
  51. "Pixel-smooth scrolling of the view with the cursor keys, using the VIC-II fine-scroll registers and a double-buffered coarse shift",
  52. "16 people as light red dots (one multicolour pixel each), spread over the world, blocked by water and stone; only those in view are drawn",
  53. "Two bitmap buffers flipped once per update; only the bytes under people are restored and redrawn between scroll steps",
  54. "SPACE generates a new world",
  55. "A 5-line text status area below a 20-row map, using a raster split: title, view position, people in view, a spare line and key help",
  56. "NTSC timing"
  57. ],
  58. "outOfScope": [
  59. "PAL support",
  60. "Worlds larger than 2x2 screens",
  61. "Sprites for people",
  62. "People with goals, pathfinding or interaction",
  63. "Sound and music",
  64. "Saving worlds or seeds",
  65. "Joystick",
  66. "Real-hardware testing (VICE only)",
  67. "C128 native mode"
  68. ]
  69. },
  70. "requirements": [
  71. {
  72. "title": "Generated 2x2-screen world",
  73. "text": "At start-up the program generates a world of 2x2 screens (80x50 cells of 4x8 multicolour pixels) from a seed. The generator decides the layout, shapes and counts of features; every world contains brown land, grey stone, green grass and trees, blue water and black roads that connect to each other. The view shows a 40x20-cell window of it in multicolour bitmap mode, above the status area (R6).",
  74. "priority": "must",
  75. "acceptance": [
  76. "After autostart in VICE (x64sc, NTSC) the map view appears within 15 seconds",
  77. "Scrolling across the whole world shows all five terrain colours: brown, grey, green, blue and black",
  78. "Roads are continuous black lines that connect to each other",
  79. "No colour clash: every 4x8 cell shows only its intended colours"
  80. ],
  81. "id": "R1",
  82. "capabilities": [
  83. "smooth-animation"
  84. ]
  85. },
  86. {
  87. "title": "16 moving people",
  88. "text": "16 people, each a single light red multicolour pixel, are spread over the world and move on their own. Water and stone block them: they walk only on land, grass, trees and roads. People inside the view are drawn; others keep moving unseen.",
  89. "priority": "must",
  90. "acceptance": [
  91. "Scrolling around the world shows 16 light red dots in total",
  92. "Each visible dot moves at least once per second",
  93. "No dot ever enters a blue (water) or grey (stone) pixel"
  94. ],
  95. "id": "R2",
  96. "capabilities": [
  97. "smooth-animation"
  98. ]
  99. },
  100. {
  101. "title": "Flicker-free double buffering, partial redraw",
  102. "text": "While the view is still, people are drawn into the hidden bitmap buffer, which is then flipped into view during vertical blank. While the view scrolls, the hidden buffer is being rebuilt for the next scroll step, so people are restored and drawn in the shown buffer during vertical blank, before the first map line, and the rebuilt buffer 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, the rest of the map is never redrawn.",
  103. "priority": "must",
  104. "acceptance": [
  105. "No flicker or tearing of the dots is visible in VICE at normal speed",
  106. "After 5 minutes of running and scrolling, the map has no leftover light red trails or damaged terrain",
  107. "A people update (restore, draw, flip) completes within one NTSC frame"
  108. ],
  109. "id": "R3",
  110. "capabilities": [
  111. "smooth-animation",
  112. "raster-interrupts"
  113. ]
  114. },
  115. {
  116. "title": "New world on SPACE",
  117. "text": "Pressing SPACE generates and shows a different world, with the 16 people placed on it.",
  118. "priority": "must",
  119. "acceptance": [
  120. "Pressing SPACE replaces the world with a visibly different one",
  121. "People keep moving on the new world"
  122. ],
  123. "id": "R4",
  124. "capabilities": [
  125. "keyboard-input"
  126. ]
  127. },
  128. {
  129. "id": "R5",
  130. "title": "Pixel-smooth scrolling",
  131. "priority": "must",
  132. "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.",
  133. "acceptance": [
  134. "Holding a cursor key moves the view smoothly with no jumps, tearing or half-drawn rows",
  135. "The view stops at all four world edges",
  136. "People and terrain stay aligned while scrolling (no dot drifts across terrain)",
  137. "Scrolling across the whole world in each direction never shows wrong or stale cells"
  138. ],
  139. "capabilities": [
  140. "keyboard-input",
  141. "smooth-animation",
  142. "raster-interrupts"
  143. ]
  144. },
  145. {
  146. "id": "R6",
  147. "title": "Status area",
  148. "priority": "must",
  149. "text": "Below the 20-row map, five rows of 40-column text in the upper-case ROM font, light red on brown, show: the title, the view position (top-left cell of the view), the number of people in view out of 16, a spare line, and key help. A raster split switches the VIC-II from multicolour bitmap to text at the boundary every frame; the text area never scrolls.",
  150. "acceptance": [
  151. "The five status lines appear below the map whenever the map is shown: title, view position, people in view, a spare line and key help",
  152. "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",
  153. "The view position shown matches the view's top-left cell and changes as the view scrolls; the people-in-view count matches the dots visible in the map"
  154. ],
  155. "capabilities": [
  156. "raster-interrupts"
  157. ]
  158. }
  159. ],
  160. "design": {
  161. "visuals": {
  162. "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, light red on brown. Brown is the shared background colour; light red 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 black (roads). 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 and roads look natural.",
  163. "source": "user"
  164. },
  165. "budgets": {
  166. "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.",
  167. "source": "default"
  168. },
  169. "sound": {
  170. "source": "default",
  171. "value": "None in the first release."
  172. },
  173. "persistence": {
  174. "source": "default",
  175. "value": "None. Maps and seeds are not saved."
  176. },
  177. "fileFormats": {
  178. "source": "default",
  179. "value": "None. A single PRG."
  180. },
  181. "peripherals": {
  182. "source": "default",
  183. "value": "Keyboard only. No disk access after loading, no joystick."
  184. },
  185. "controls": {
  186. "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.",
  187. "source": "user"
  188. },
  189. "other": [
  190. {
  191. "topic": "Memory layout",
  192. "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 (light red), which is also the status text colour.",
  193. "source": "default"
  194. },
  195. {
  196. "topic": "Rebuild source",
  197. "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.",
  198. "source": "default"
  199. },
  200. {
  201. "topic": "Seed",
  202. "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.",
  203. "source": "default"
  204. }
  205. ]
  206. },
  207. "capabilities": [
  208. "keyboard-input",
  209. "smooth-animation",
  210. "raster-interrupts"
  211. ],
  212. "assumptions": [
  213. {
  214. "text": "Light red (C64 colour 10) stands in for tan, as the C64 has no tan.",
  215. "status": "confirmed",
  216. "id": "A1"
  217. },
  218. {
  219. "text": "The map generator keeps every 4x8 cell to at most two of grey, green, blue and black (besides brown). Where three would meet, for example a road along a shoreline next to grass, it changes the least-represented colour in that cell.",
  220. "status": "default",
  221. "id": "A2"
  222. },
  223. {
  224. "id": "A3",
  225. "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.",
  226. "status": "unverified"
  227. },
  228. {
  229. "id": "A4",
  230. "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.",
  231. "status": "unverified"
  232. },
  233. {
  234. "id": "A5",
  235. "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.",
  236. "status": "default"
  237. },
  238. {
  239. "id": "A6",
  240. "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.",
  241. "status": "unverified"
  242. },
  243. {
  244. "id": "A7",
  245. "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.",
  246. "status": "unverified"
  247. }
  248. ],
  249. "openDecisions": [
  250. {
  251. "id": "D1",
  252. "topic": "Stone blocking",
  253. "question": "Should stone block people as well as water?",
  254. "default": "Yes: both water and stone block people (agent's reading of \"yes block\").",
  255. "status": "open"
  256. }
  257. ],
  258. "toolchain": {
  259. "recipe": "cc65",
  260. "language": "asm-ca65",
  261. "recommended": {
  262. "recipe": "cc65",
  263. "language": "asm-ca65"
  264. },
  265. "reasons": [
  266. "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.",
  267. "ca65 (the cc65 suite assembler) on Windows with VICE x64sc is a verified Foundry combination with an automated smoke test.",
  268. "Assembly gives exact control of VIC-II bank switching, fine-scroll registers and raster timing, which the flip and the scroll depend on."
  269. ],
  270. "alternatives": [
  271. {
  272. "option": "C (cc65)",
  273. "whyNot": "Too slow for the per-frame buffer rebuild and smooth scrolling; it would need most hot paths in assembly anyway."
  274. },
  275. {
  276. "option": "Mixed C + ca65",
  277. "whyNot": "Possible for world generation, but nearly all the work is timing-critical, and the user asked for assembly."
  278. },
  279. {
  280. "option": "BASIC V2",
  281. "whyNot": "Far too slow for bitmap drawing, let alone smooth scrolling."
  282. }
  283. ],
  284. "override": null,
  285. "assumptionsToVerify": [
  286. "A3: buffer flip via $DD00 bank bits in vertical blank shows no tearing on NTSC in VICE.",
  287. "A4: measure the per-frame cost of the rebuild slice plus the people update with a border-colour timing bar before M3 is finished.",
  288. "A6: multicolour bitmap and bank switching behave as documented in Mapping the Commodore 64.",
  289. "A7: the bitmap-to-text raster split stays steady under vertical fine scroll in VICE x64sc NTSC."
  290. ]
  291. },
  292. "starter": {
  293. "screenTitle": "LAND MAP 64",
  294. "expectedScreen": "After a short generating message, VICE shows the top-left view of the generated terrain in multicolour bitmap mode (20 rows), with light red dots (people) walking on it and five status lines below. SPACE generates a different map. The hidden text screen shows \"LAND MAP 64\" and \"MAP READY\".",
  295. "smokeChecks": [
  296. {
  297. "row": 0,
  298. "col": 0,
  299. "text": "LAND MAP 64",
  300. "description": "Title in the status mirror"
  301. },
  302. {
  303. "row": 2,
  304. "col": 0,
  305. "text": "MAP READY",
  306. "description": "World generation reached its ready point"
  307. }
  308. ],
  309. "requirements": [
  310. "R3"
  311. ],
  312. "filesDir": "land-map-64-files"
  313. },
  314. "milestones": [
  315. {
  316. "id": "M1",
  317. "title": "World generation and static view",
  318. "goal": "A different 2x2-screen world appears at start-up and on SPACE, shown one screen at a time in multicolour bitmap mode.",
  319. "tasks": [
  320. {
  321. "id": "M1.1",
  322. "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.",
  323. "requirements": [
  324. "R1"
  325. ],
  326. "outcome": "Tile table and a test view showing every tile",
  327. "check": "Manual test MT1.1"
  328. },
  329. {
  330. "id": "M1.2",
  331. "text": "Seeded generator: 80x50 tile world with water, stone, grass with trees, and connected roads; enforce the at-most-two-colours-per-cell rule.",
  332. "requirements": [
  333. "R1"
  334. ],
  335. "outcome": "World generated in RAM",
  336. "check": "Manual test MT1.1; smoke test reports MAP READY"
  337. },
  338. {
  339. "id": "M1.3",
  340. "text": "Render the top-left screen of the world into the visible buffer; SPACE regenerates.",
  341. "requirements": [
  342. "R1",
  343. "R4"
  344. ],
  345. "outcome": "PRG showing a generated world; SPACE makes a new one",
  346. "check": "Manual test MT1.2"
  347. }
  348. ],
  349. "manualTests": [
  350. {
  351. "id": "MT1.1",
  352. "title": "Generated world looks right",
  353. "target": "c64",
  354. "setup": "VICE x64sc, NTSC (-ntsc), warp off.",
  355. "steps": [
  356. "Wait for the map view.",
  357. "Inspect the screen."
  358. ],
  359. "expected": [
  360. "Brown land, grey stone, green grass and trees, blue water and black roads are visible (some may be off-screen until M3)",
  361. "Roads are continuous",
  362. "No colour clash in any cell"
  363. ],
  364. "requirements": [
  365. "R1"
  366. ]
  367. },
  368. {
  369. "id": "MT1.2",
  370. "title": "New world on SPACE",
  371. "target": "c64",
  372. "setup": "VICE x64sc, NTSC (-ntsc), warp off.",
  373. "steps": [
  374. "Note the map.",
  375. "Press SPACE and wait."
  376. ],
  377. "expected": [
  378. "A visibly different map appears"
  379. ],
  380. "requirements": [
  381. "R4"
  382. ]
  383. }
  384. ]
  385. },
  386. {
  387. "id": "M2",
  388. "title": "People and double-buffered partial redraw",
  389. "goal": "16 light red people move without flicker, blocked by water and stone, with only their spots redrawn.",
  390. "tasks": [
  391. {
  392. "id": "M2.1",
  393. "text": "People table (world x, y, direction) and movement rules; water and stone block.",
  394. "requirements": [
  395. "R2"
  396. ],
  397. "outcome": "People move in world data",
  398. "check": "Manual test MT2.1"
  399. },
  400. {
  401. "id": "M2.2",
  402. "text": "Per-buffer saved-byte lists: restore the bytes under people from two frames ago, draw people in view, flip in vertical blank.",
  403. "requirements": [
  404. "R3"
  405. ],
  406. "outcome": "Flicker-free moving dots, no trails",
  407. "check": "Manual tests MT2.1 and MT2.2"
  408. }
  409. ],
  410. "manualTests": [
  411. {
  412. "id": "MT2.1",
  413. "title": "People move and are blocked",
  414. "target": "c64",
  415. "setup": "VICE x64sc, NTSC (-ntsc), warp off.",
  416. "steps": [
  417. "Watch the visible dots for 30 seconds."
  418. ],
  419. "expected": [
  420. "Dots move at least once per second",
  421. "No dot enters blue or grey pixels"
  422. ],
  423. "requirements": [
  424. "R2"
  425. ]
  426. },
  427. {
  428. "id": "MT2.2",
  429. "title": "No flicker, no trails",
  430. "target": "c64",
  431. "setup": "VICE x64sc, NTSC (-ntsc), warp off.",
  432. "steps": [
  433. "Let it run for 5 minutes.",
  434. "Inspect the map closely."
  435. ],
  436. "expected": [
  437. "No flicker",
  438. "No light red trails or damaged terrain"
  439. ],
  440. "requirements": [
  441. "R3"
  442. ]
  443. }
  444. ]
  445. },
  446. {
  447. "id": "M3",
  448. "title": "Split screen and pixel-smooth scrolling",
  449. "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.",
  450. "tasks": [
  451. {
  452. "id": "M3.1",
  453. "text": "Keyboard matrix reading for the cursor keys with SHIFT, held-key repeat.",
  454. "requirements": [
  455. "R5"
  456. ],
  457. "outcome": "Scroll direction from keys",
  458. "check": "Manual test MT3.1"
  459. },
  460. {
  461. "id": "M3.2",
  462. "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.",
  463. "requirements": [
  464. "R6",
  465. "R1"
  466. ],
  467. "outcome": "Steady 20-row map with 5 status lines below",
  468. "check": "Manual test MT3.3"
  469. },
  470. {
  471. "id": "M3.3",
  472. "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).",
  473. "requirements": [
  474. "R5",
  475. "R3",
  476. "R6",
  477. "R2"
  478. ],
  479. "outcome": "Smooth scrolling across the world under a fixed status area, people in place",
  480. "check": "Manual tests MT3.1, MT3.2 and MT3.3"
  481. },
  482. {
  483. "id": "M3.4",
  484. "text": "Check that people stay aligned with the terrain over long scrolling runs; measure the frame budget with a border-colour timing bar.",
  485. "requirements": [
  486. "R2",
  487. "R3",
  488. "R5",
  489. "R6"
  490. ],
  491. "outcome": "People stay aligned with terrain over long runs; budget measured",
  492. "check": "Manual tests MT3.2, MT3.3 and MT3.4"
  493. }
  494. ],
  495. "manualTests": [
  496. {
  497. "id": "MT3.1",
  498. "title": "Smooth scrolling",
  499. "target": "c64",
  500. "setup": "VICE x64sc, NTSC (-ntsc), warp off.",
  501. "steps": [
  502. "Hold each cursor key (with SHIFT for up and left) until the view stops."
  503. ],
  504. "expected": [
  505. "Smooth movement, no jumps or tearing",
  506. "The view stops at each world edge",
  507. "All five terrain colours seen across the world"
  508. ],
  509. "requirements": [
  510. "R1",
  511. "R5"
  512. ]
  513. },
  514. {
  515. "id": "MT3.2",
  516. "title": "People while scrolling",
  517. "target": "c64",
  518. "setup": "VICE x64sc, NTSC (-ntsc), warp off.",
  519. "steps": [
  520. "Scroll slowly past several people.",
  521. "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.",
  522. "From M3.4: with many dots in view near the top of the map, scroll left and right."
  523. ],
  524. "expected": [
  525. "Dots stay on the terrain they walk on, also after long runs",
  526. "16 dots in total across the world",
  527. "No trails or damaged terrain left behind, even after 5 minutes",
  528. "No flicker or tearing of the dots near the top of the map"
  529. ],
  530. "requirements": [
  531. "R2",
  532. "R3",
  533. "R5"
  534. ]
  535. },
  536. {
  537. "id": "MT3.3",
  538. "title": "Status area",
  539. "target": "c64",
  540. "setup": "VICE x64sc, NTSC (-ntsc), warp off.",
  541. "steps": [
  542. "Wait for the map view and read the text below the map.",
  543. "Watch the boundary between map and text for 30 seconds while the dots move.",
  544. "Tap SPACE and watch the boundary while the new map is shown.",
  545. "From M3.3: hold each cursor key and watch the text and the boundary while the map scrolls."
  546. ],
  547. "expected": [
  548. "Five light red upper-case status lines below a 20-row map",
  549. "The people-in-view number equals the dots visible on the map",
  550. "The boundary is clean and steady: no flicker, jitter or garbage",
  551. "From M3.3: the text never moves while the map scrolls and VIEW X/Y follow the scrolling"
  552. ],
  553. "requirements": [
  554. "R6",
  555. "R1"
  556. ]
  557. },
  558. {
  559. "id": "MT3.4",
  560. "title": "Frame budget timing bar",
  561. "target": "c64",
  562. "setup": "VICE x64sc, NTSC (-ntsc), warp off. Start with pwsh -File tools/run.ps1 -Target c64 -TimingBar (separate timing build).",
  563. "steps": [
  564. "Leave the view still for a few seconds.",
  565. "Hold a cursor key and watch the border while the map scrolls."
  566. ],
  567. "expected": [
  568. "Still: mostly brown border with a thin red stripe at the status split",
  569. "Scrolling: cyan (rebuild) down to near the bottom, red stripe at the split, a little brown below",
  570. "The border pattern is steady from frame to frame (no rolling): every frame is kept"
  571. ],
  572. "requirements": [
  573. "R3",
  574. "R5"
  575. ]
  576. }
  577. ]
  578. }
  579. ],
  580. "destination": "C:\\Development\\Commodore\\Foundry Projects\\land-map-64",
  581. "approval": {
  582. "approvedBy": "Daniel Covington",
  583. "approvedOn": "2026-12-03"
  584. },
  585. "generated": {
  586. "by": "C64/C128 Dev Foundry",
  587. "foundryVersion": "1.0",
  588. "on": "2026-12-03",
  589. "fromBrief": "land-map-64.json",
  590. "foundryRoot": "C:\\Development\\Commodore\\foundry"
  591. },
  592. "resolved": {
  593. "_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.",
  594. "recipe": "cc65",
  595. "recipeTitle": "Windows cross-development with cc65 (C, ca65 assembly or mixed) and VICE",
  596. "language": "asm-ca65",
  597. "languageTitle": "6502 assembly (ca65)",
  598. "starter": "cc65-asm",
  599. "capabilityFiles": [],
  600. "tools": [
  601. {
  602. "id": "cl65",
  603. "executable": "cl65",
  604. "package": "cc65",
  605. "purpose": "cc65 compile/assemble/link driver (C and ca65 assembly)",
  606. "verifiedVersion": "cl65 V2.19 - Git cc3c40c",
  607. "versionArgs": [
  608. "--version"
  609. ],
  610. "envVar": "CC65_HOME",
  611. "searchPaths": [
  612. "C:\\cc65\\bin",
  613. "C:\\Program Files\\cc65\\bin"
  614. ],
  615. "install": {
  616. "source": "https://cc65.github.io/getting-started.html",
  617. "download": "https://sourceforge.net/projects/cc65/files/cc65-snapshot-win64.zip",
  618. "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."
  619. },
  620. "docs": [
  621. "https://cc65.github.io/doc/cl65.html",
  622. "https://cc65.github.io/doc/ca65.html"
  623. ],
  624. "requiredFor": [
  625. "build of target c64 (tools/build.ps1)"
  626. ]
  627. },
  628. {
  629. "id": "x64sc",
  630. "executable": "x64sc",
  631. "package": "vice",
  632. "purpose": "VICE cycle-exact Commodore 64 emulator",
  633. "verifiedVersion": "VICE 3.10",
  634. "versionArgs": [],
  635. "envVar": "VICE_HOME",
  636. "searchPaths": [
  637. "C:\\Program Files\\GTK3VICE-*\\bin",
  638. "C:\\Program Files\\SDL2VICE-*",
  639. "%LOCALAPPDATA%\\Microsoft\\WinGet\\Packages\\VICE-Team.VICE.GTK3*\\*\\bin"
  640. ],
  641. "install": {
  642. "source": "https://vice-emu.sourceforge.io/index.html#download",
  643. "download": "https://sourceforge.net/projects/vice-emu/files/releases/binaries/windows/GTK3VICE-3.10-win64.zip/download",
  644. "firstCommand": "winget install --id VICE-Team.VICE.GTK3 -e (or unzip GTK3VICE-3.10-win64.zip and set VICE_HOME to the unzipped folder)"
  645. },
  646. "docs": [
  647. "https://vice-emu.sourceforge.io/vice_2.html#SEC50",
  648. "https://vice-emu.sourceforge.io/vice_6.html",
  649. "https://vice-emu.sourceforge.io/vice_12.html"
  650. ],
  651. "requiredFor": [
  652. "run and smoke test of target c64 (tools/run.ps1, tools/smoke.ps1)"
  653. ]
  654. }
  655. ],
  656. "targets": [
  657. {
  658. "id": "c64",
  659. "name": "Commodore 64 (NTSC)",
  660. "platform": "c64",
  661. "display": "vicii-40",
  662. "video": "ntsc",
  663. "videoSupport": "ntsc",
  664. "artifact": "build/land-map-64.prg",
  665. "expectedBehavior": "Autostarts, shows a short generating message, then a multicolour bitmap view of the world (20 rows): brown land, grey stone, green grass and trees, blue water, black roads, with 5 lines of status text below it. Light red dots move on land and roads. Cursor keys scroll the view smoothly; SPACE generates a new world.",
  666. "build": {
  667. "kind": "cc65",
  668. "cc65Target": "c64",
  669. "config": "c64-asm.cfg",
  670. "defines": [
  671. "FOUNDRY_TARGET_C64"
  672. ],
  673. "sourceDirs": [
  674. "src"
  675. ],
  676. "labels": "build/land-map-64.lbl",
  677. "map": "build/land-map-64.map"
  678. },
  679. "disk": null,
  680. "emulator": {
  681. "binary": "x64sc",
  682. "args": [],
  683. "autostart": "prg",
  684. "notes": []
  685. },
  686. "smoke": {
  687. "ready": {
  688. "kind": "exec",
  689. "symbol": "smoke_ready",
  690. "address": null
  691. },
  692. "limitCycles": 30000000,
  693. "dumps": [
  694. {
  695. "name": "screen",
  696. "symbol": null,
  697. "address": "0400",
  698. "length": 1000
  699. },
  700. {
  701. "name": "world",
  702. "symbol": "world_tiles",
  703. "address": null,
  704. "length": 4000
  705. },
  706. {
  707. "name": "vector",
  708. "symbol": null,
  709. "address": "FFFC",
  710. "length": 2
  711. },
  712. {
  713. "name": "status-a",
  714. "symbol": null,
  715. "address": "4720",
  716. "length": 200
  717. },
  718. {
  719. "name": "status-b",
  720. "symbol": null,
  721. "address": "8720",
  722. "length": 200
  723. }
  724. ],
  725. "checks": [
  726. {
  727. "dump": "screen",
  728. "offset": 0,
  729. "text": "LAND MAP 64",
  730. "encoding": "screen-upper",
  731. "bytes": null,
  732. "description": "Title in the status mirror"
  733. },
  734. {
  735. "dump": "screen",
  736. "offset": 80,
  737. "text": "MAP READY",
  738. "encoding": "screen-upper",
  739. "bytes": null,
  740. "description": "World generation reached its ready point"
  741. },
  742. {
  743. "dump": "vector",
  744. "offset": 0,
  745. "text": null,
  746. "encoding": null,
  747. "bytes": "E2 FC",
  748. "description": "C64 KERNAL reset vector at $FFFC (machine is in C64 mode)"
  749. },
  750. {
  751. "dump": "status-a",
  752. "offset": 0,
  753. "text": "LAND MAP 64",
  754. "encoding": "screen-upper",
  755. "bytes": null,
  756. "description": "Status row 20 title in buffer A's text screen"
  757. },
  758. {
  759. "dump": "status-a",
  760. "offset": 40,
  761. "text": "VIEW X 00 Y 00",
  762. "encoding": "screen-upper",
  763. "bytes": null,
  764. "description": "Status row 21 view position in buffer A"
  765. },
  766. {
  767. "dump": "status-a",
  768. "offset": 80,
  769. "text": "PEOPLE IN VIEW",
  770. "encoding": "screen-upper",
  771. "bytes": null,
  772. "description": "Status row 22 people label in buffer A"
  773. },
  774. {
  775. "dump": "status-a",
  776. "offset": 160,
  777. "text": "CRSR SCROLL SPACE NEW WORLD",
  778. "encoding": "screen-upper",
  779. "bytes": null,
  780. "description": "Status row 24 key help in buffer A"
  781. },
  782. {
  783. "dump": "status-b",
  784. "offset": 0,
  785. "text": "LAND MAP 64",
  786. "encoding": "screen-upper",
  787. "bytes": null,
  788. "description": "Status row 20 title in buffer B's text screen"
  789. },
  790. {
  791. "dump": "status-b",
  792. "offset": 160,
  793. "text": "CRSR SCROLL SPACE NEW WORLD",
  794. "encoding": "screen-upper",
  795. "bytes": null,
  796. "description": "Status row 24 key help in buffer B"
  797. }
  798. ],
  799. "expectedScreen": "After a short generating message, VICE shows the top-left view of the generated terrain in multicolour bitmap mode (20 rows), with light red dots (people) walking on it and five status lines below. SPACE generates a different map. The hidden text screen shows \"LAND MAP 64\" and \"MAP READY\"."
  800. },
  801. "recipeStatus": "verified",
  802. "validationPlan": []
  803. }
  804. ],
  805. "onCommodore": null,
  806. "catalogVerifiedOn": "2026-11-26",
  807. "catalogVerifiedWith": {
  808. "cc65": "cl65 V2.19 - Git cc3c40c (Windows x64 snapshot)",
  809. "vice": "VICE 3.10 GTK3 win64 (x64sc, x128, c1541, petcat)",
  810. "powershell": "PowerShell 7.6.7",
  811. "git": "git 2.53.0.windows.1",
  812. "os": "Windows 11 Pro 10.0.26200"
  813. },
  814. "sources": [
  815. "https://cc65.github.io/doc/cl65.html",
  816. "https://cc65.github.io/doc/c64.html#toc4.2",
  817. "https://cc65.github.io/doc/c128.html",
  818. "https://cc65.github.io/doc/ca65.html",
  819. "https://vice-emu.sourceforge.io/vice_2.html#SEC50",
  820. "https://vice-emu.sourceforge.io/vice_7.html#SEC194",
  821. "https://vice-emu.sourceforge.io/vice_12.html"
  822. ]
  823. }
  824. }

Powered by TurnKey Linux.