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.

5.3KB

Stonehold 64 - Verification status

The implementation agent updates this file after every task (AGENTS.md section 4). Manual verification stays pending until the user confirms it. Only the user can confirm.

Values: automated = passed (<date>, <command>), failed (...), not run - <reason>; manual = pending, confirmed by user (<date>), problem reported (<date>): <note>.

Item Automated check Manual verification by user
M0.1 Run tools/check-prereqs.ps1, then tools/smoke.ps1 for every target. passed (2026-11-26, pwsh -File tools/check-prereqs.ps1 exit 0; pwsh -File tools/build.ps1 exit 0; pwsh -File tools/smoke.ps1 exit 0, [PASS] c64, 4/4 checks). Run on the working tree including the uncommitted src/charset.c/.h edit (glyphs at codes 128+), see Notes. confirmed by user (2026-11-26)
M1.1 Settle the memory map (A3): where the 16 KB map, the charset and the program live. Add a check that fails the build or shows an error if they overlap. passed (2026-11-26): pwsh -File tools/build.ps1 exit 0, build/stonehold-64.map shows program $0801-$1702, CHARSET $3800-$3FFF, MAP $4000-$7FFF, no overlap; deliberate overflow links (1 extra byte in MAP, 10 KB extra BSS) failed with ld65 ‘overflows memory area’, cl65 exit 1; pwsh -File tools/smoke.ps1 exit 0, [PASS] c64 4/4. pending
M1.2 Map generator in C: seeded PRNG, soft rock, hard-rock veins, caverns, starting cave near the centre. Show the seed on row 24. passed (2026-11-26): pwsh -File tools/build.ps1 exit 0; pwsh -File tools/smoke.ps1 exit 0, [PASS] c64 5/5 (title, layout_ok=01, STONE 000, ‘SEED ' on row 24, KERNAL vector). Extra VICE runs with memory dumps: two runs of the normal build gave seeds 21910 and 30091 with different maps (R2.2); two runs of a FIXED_SEED=12345 build gave byte-identical 16 KB maps (R2.3); dwarves on floor tiles in the starting cave (R2.4). Generation time 133 jiffies (about 2.2 s), measured by the program. pending
M1.3 Assembly view redraw (draw_view(x, y), C prototype) copying a 40x23 window of the map to screen and colour RAM. Each map byte is its own screen code with its colour in the low nibble (changed from a tile-to-glyph/colour table with user approval on 2026-11-26: the table version measured 22,754 PAL / 23,177 NTSC cycles, over one frame). passed (2026-11-26): pwsh -File tools/build.ps1 exit 0; pwsh -File tools/smoke.ps1 -Video pal exit 0 and -Video ntsc exit 0, [PASS] c64 6/6 each, including view_fast = 01. Measured full redraw: 14,962 cycles PAL (frame 19,656), 15,131 NTSC (frame 17,095). VIEW_TIMING build screenshots in VICE: red bar ends partway down the screen on PAL and just above row 24 on NTSC. Earlier attempt (table version) failed: 22,754 PAL / 23,177 NTSC. pending
M1.4 Keyboard cursor (cursor keys and W/A/S/D) with edge scrolling and map-border clamping. Status line: ‘STONE 000 SEED nnnnn RUN’. not run pending
M2.1 Mark/unmark with RETURN on rock tiles only; marked-rock glyph. Joystick port 2 cursor movement with key repeat and fire to mark. not run pending
M2.2 1351 mouse via cc65 c64_1351_mou: sprite 0 pointer, dig cursor = tile under the pointer tip, left button marks/unmarks, pointer at a view edge scrolls. Verify A1/A2 and record the exact VICE options in docs/. not run pending
M3.1 Dwarf job system: idle dwarves claim the nearest reachable marked tile via a windowed breadth-first search (one search per frame at most), walk there, mine for a time that depends on the rock type, turn it into floor. not run pending
M3.2 Stone counter increments per mined tile; SPACE pauses and resumes; marking still works while paused. not run pending
M3.3 Frame-based timers scaled for PAL and NTSC using get_tv(). not run pending
M4.1 SID effects (assembly or C): mark/unmark click on one voice, pick strike on another, silenced while paused. not run pending

Notes

  • 2026-11-26, open question (spec vs code): cc65 conio writes capital letters as screen codes 65-90. The spec's Visuals decision (codes 0-63 from the uppercase ROM, game glyphs at 64+) would put glyphs on the letters A-E and blank F-Z. The uncommitted working-tree edit to src/charset.c/.h copies ROM codes 0-127 from the lower/upper-case set and puts the game glyphs at 128-133. The M0 smoke run and screenshot used that edit. The user approved the change on 2026-11-26; docs/spec.md (Visuals), project.json and the src/main.c header now describe codes 0-127 = ROM lower/upper-case set, 128+ = game glyphs. Build and smoke re-run after the doc update (see M0.1).
  • 2026-11-26, M1.2: cc65 V2.19 (Git cc3c40c) with -O miscompiled scr[col] = tile_glyph[t] in src/view.c: it indexed the table with the low byte of the screen address instead of t. Worked around with pointer increments (checked in the generated assembly). M1.3 replaces this loop with assembly. Inspect the generated code (cc65 -O -t c64 -I src src/file.c) when a C table lookup misbehaves.
  • 2026-11-26: requirement change approved by the user: RETURN marks/unmarks instead of D (R4.1-R4.3, Controls, M2.1, MT2.1). D stays ‘move right’. Not yet implemented; marking arrives in M2.1.
  • Generated 2026-11-26. Starter verification at generation time is reported by the Foundry; re-run pwsh -File tools/smoke.ps1 on your machine and record the result in row M0.1.

Powered by TurnKey Linux.