Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

31KB

Land Map 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-12-03, pwsh -File tools/check-prereqs.ps1; pwsh -File tools/build.ps1; pwsh -File tools/smoke.ps1) confirmed by user (2026-12-03)
M1.1 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. passed (2026-12-03, pwsh -File tools/build.ps1; pwsh -File tools/smoke.ps1) confirmed by user (2026-12-03)
M1.2 Seeded generator: 80x50 tile world with water, stone, grass with trees, and connected roads; enforce the at-most-two-colours-per-cell rule. passed (2026-12-03, pwsh -File tools/build.ps1; pwsh -File tools/smoke.ps1; pwsh -File tools/check-world.ps1) confirmed by user (2026-12-03)
M1.3 Render the top-left screen of the world into the visible buffer; SPACE regenerates. passed (2026-12-03, pwsh -File tools/build.ps1; pwsh -File tools/smoke.ps1; pwsh -File tools/check-world.ps1; VICE monitor buffered SPACE and compared all 1,000 visible cells before and after) confirmed by user (2026-12-03)
M2.1 People table (world x, y, direction) and movement rules; water and stone block. passed (2026-12-03, pwsh -File tools/build.ps1; pwsh -File tools/smoke.ps1; pwsh -File tools/check-world.ps1; pwsh -File tools/check-people.ps1: 2,106 frames logged, every person stepped 263-264 times, none on water or stone) confirmed by user (2026-12-03)
M2.2 Per-buffer saved-byte lists: restore the bytes under people from two frames ago, draw people in view, flip in vertical blank. passed (2026-12-03, pwsh -File tools/build.ps1; pwsh -File tools/smoke.ps1; pwsh -File tools/check-world.ps1; pwsh -File tools/check-people.ps1: 2,117 frames, 0 missed flips, update done by raster line 26 at the latest, both final bitmaps byte-exact against clean map plus dots) confirmed by user (2026-12-03)
M3.1 Keyboard matrix reading for the cursor keys with SHIFT, held-key repeat. passed (2026-12-03, pwsh -File tools/build.ps1; pwsh -File tools/smoke.ps1; pwsh -File tools/check-world.ps1; pwsh -File tools/check-people.ps1; pwsh -File tools/check-keys.ps1: 8 of 8 scenarios, SPACE held = 1 regeneration) confirmed by user (2026-12-03)
M3.2 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. passed (2026-12-03, pwsh -File tools/build.ps1; pwsh -File tools/smoke.ps1 incl. status text in both banks; pwsh -File tools/check-world.ps1; pwsh -File tools/check-people.ps1; pwsh -File tools/check-keys.ps1; pwsh -File tools/check-split.ps1: 955 splits in 955 frames, writes start at 210:55-61, digits right in every frame) confirmed by user (2026-12-03)
M3.3 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). passed (2026-12-03, pwsh -File tools/build.ps1; pwsh -File tools/smoke.ps1; pwsh -File tools/check-world.ps1; pwsh -File tools/check-people.ps1: 2,127 frames, 0 missed, update done by line 36; pwsh -File tools/check-keys.ps1: 8 of 8; pwsh -File tools/check-split.ps1: 964 splits in 964 frames, all y-scroll values 0-7, starts 210:55-64, digits right after 240 of 240 status updates; pwsh -File tools/check-scroll.ps1: 3 of 3 scenarios, edges reached and held, 1-5 stall frames per scenario, both buffers byte-exact at the end) confirmed by user (2026-12-03), after the fix for the reported tear (“the top of the screen tears a little when I go left or right”)
M3.4 Check that people stay aligned with the terrain over long scrolling runs; measure the frame budget with a border-colour timing bar. passed (2026-12-03, pwsh -File tools/build.ps1; pwsh -File tools/smoke.ps1; pwsh -File tools/check-world.ps1; pwsh -File tools/check-people.ps1: 2,130 frames, update done by line 21; pwsh -File tools/check-keys.ps1: 8 of 8; pwsh -File tools/check-split.ps1: 962 splits, digits 241/241; pwsh -File tools/check-scroll.ps1 -Long: 4 of 4, tour 23,195 frames (about 6.4 minutes NTSC) with 21 stops byte-exact, people update done by line 45 at the latest; timing build --asm-define TIMING_BAR built and screenshot in VICE) confirmed by user (2026-12-03), with the light brown background (colour 8, pepto-pal palette); dots visible
M4.1 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. passed (2026-12-03, pwsh -File tools/build.ps1 (4,647 bytes); pwsh -File tools/smoke.ps1; pwsh -File tools/check-world.ps1 -Runs 10: 10 of 10 worlds, every 40x20 view with 3+ terrain kinds, map ready 7.1-7.3 s after power-on (generation 4.0-4.1 s), mix spread land 14 / grass-trees 8 / water 13 / stone 16 percentage points; pwsh -File tools/check-people.ps1: 1,919 frames, 0 missed, update done by line 20; pwsh -File tools/check-keys.ps1: 8 of 8; pwsh -File tools/check-split.ps1: 734 splits, digits right after 183 of 183 updates; pwsh -File tools/check-scroll.ps1 -Long: 4 of 4, tour 22,966 frames with 21 stops byte-exact, 116 stall frames in 15,216 moving frames; fix for walking on bridge water, 2026-12-03: pwsh -File tools/build.ps1 (4,683 bytes); pwsh -File tools/smoke.ps1; pwsh -File tools/check-world.ps1 and -Runs 10: 10 of 10; pwsh -File tools/check-keys.ps1: 8 of 8; pwsh -File tools/check-split.ps1; pwsh -File tools/check-scroll.ps1: 3 of 3; pwsh -File tools/check-people.ps1 -Cycles 300000000: 17,119 frames, 1,408 person-frames on bridges, no dot on a blue or grey pixel; the same check fails on the old code (person 9 on a blue pixel of bridge tile 20); fix for the scroll that did not start, 2026-12-03: pwsh -File tools/build.ps1; pwsh -File tools/smoke.ps1; pwsh -File tools/check-world.ps1; pwsh -File tools/check-keys.ps1: 8 of 8; pwsh -File tools/check-split.ps1; pwsh -File tools/check-scroll.ps1: 4 of 4, new restart scenario 12 stall frames over four starts from a cell edge (the same scenario fails on the old code: 1,166 frames held left without moving); pwsh -File tools/check-people.ps1: 1,899 frames, 816 person-frames on bridges, pass; pwsh -File tools/check-scroll.ps1 -Long: 5 of 5, tour 22,967 frames with 21 stops byte-exact, 111 stall frames in 15,216 moving frames) confirmed by user (2026-12-03), after two fixes: people walked on the blue water pixels of bridges, and the scroll sometimes did not start from rest on a cell edge
M5.1 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. passed (2026-12-03, pwsh -File tools/build.ps1 (4,581 bytes); pwsh -File tools/smoke.ps1; pwsh -File tools/check-world.ps1 and -Runs 10: 10 of 10 worlds, no road or bridge cells; pwsh -File tools/check-people.ps1; pwsh -File tools/check-keys.ps1: 8 of 8; pwsh -File tools/check-split.ps1; pwsh -File tools/check-scroll.ps1: 4 of 4) confirmed by user (2026-12-03)
M5.2 Worn paths: walk count per cell, path at 128, back below 64, one count less every 60 seconds. passed (2026-12-03, pwsh -File tools/build.ps1 (5,257 bytes); pwsh -File tools/smoke.ps1; pwsh -File tools/check-world.ps1; pwsh -File tools/check-people.ps1: 1,910 frames; pwsh -File tools/check-keys.ps1: 8 of 8; pwsh -File tools/check-split.ps1; pwsh -File tools/check-paths.ps1 (test build): 27 paths appeared, 4 faded, both buffers match the current world plus dots; pwsh -File tools/check-scroll.ps1 -Long: 5 of 5, tour 22,967 frames, 21 stops byte-exact, 95 stall frames, 6 paths appeared in the normal build during the tour; pwsh -File tools/check-scroll.ps1 -Long -PathTest: 5 of 5, tour 70 paths appeared and 38 faded while scrolling, no store into the shown buffer while displayed, 472 stall frames in 15,216 moving frames) confirmed by user (2026-12-03)
M6.1 People's attributes: six 3d6 scores per person, P steps through the people, status line 4 shows the scores, the chosen person's dot blinks. passed (2026-12-03, pwsh -File tools/build.ps1 (5,464 bytes); pwsh -File tools/smoke.ps1 incl. status row 23 “P01 STR”; pwsh -File tools/check-world.ps1; pwsh -File tools/check-keys.ps1: 9 of 9, new ‘P held’ scenario steps to person 2 exactly once, all 96 scores 3-18, status line 4 matches the shown person in every scenario; pwsh -File tools/check-people.ps1 (expected dots leave out draw_skip); pwsh -File tools/check-split.ps1: 727 splits, people-in-view digits right after 182 of 182 updates, all five status rows lit; pwsh -File tools/check-paths.ps1: 42 appeared, 11 faded; pwsh -File tools/check-scroll.ps1 -Long: 5 of 5, tour 22,968 frames, 21 stops byte-exact, 100 stall frames. tools/check-scroll.ps1 -Long -PathTest passed 5 of 5 on the build before the status fix below (tour 79 paths appeared, 45 faded); its rerun on the committed build failed only on stall frames (752, allowed 606; screens byte-exact). Fix for that, 2026-12-03: pwsh -File tools/check-paths.ps1; pwsh -File tools/check-scroll.ps1 -Long -PathTest: 5 of 5, tour 272 stall frames, 66 paths appeared and 34 faded, 21 stops byte-exact; pwsh -File tools/smoke.ps1; pwsh -File tools/check-world.ps1; pwsh -File tools/check-people.ps1; pwsh -File tools/check-keys.ps1: 9 of 9; pwsh -File tools/check-split.ps1; pwsh -File tools/check-scroll.ps1 -Long: 5 of 5, tour 22,964 frames, 99 stall frames, 21 stops byte-exact) confirmed by user (2026-12-03)
M6.2 Status area shows only the chosen person: number, random name and M/F on row 20, scores on row 21, rows 22-24 blank; title, view position, people in view and key help removed. passed (2026-12-04, pwsh -File tools/build.ps1 (5,729 bytes); pwsh -File tools/smoke.ps1: rows 20-21 “P01 " and “STR” in both banks, row 22 blank; pwsh -File tools/check-keys.ps1: 9 of 9, every name 3-10 letters, sexes 0/1 (5-11 of 16 female across scenarios), rows 20-21 match the shown person; pwsh -File tools/check-world.ps1; pwsh -File tools/check-people.ps1; pwsh -File tools/check-split.ps1: 740 splits, person 01 in both banks in 739 of 739 frames, rows 22-24 blank; pwsh -File tools/check-paths.ps1: 20 appeared, 2 faded. pwsh -File tools/check-scroll.ps1 -Long: 5 of 5, tour 22,965 frames, 114 stall frames, 21 stops byte-exact; pwsh -File tools/check-scroll.ps1 -Long -PathTest: 5 of 5, tour 218 stall frames, 83 paths appeared and 48 faded, 21 stops byte-exact) confirmed by user (2026-12-04)

Notes

  • 2026-12-04 (M6.2, spec change approved by the user: status area shows only the chosen person; random names and sex):

    • src/people.inc roll_names: sex 50/50 into people_sex; name = start syllable (16), half the time a middle syllable (8, at most 2 letters), and an end syllable from 16 male or 16 female ones, so at most 10 letters (people_name, space padded). Syllables are 4-byte entries in one table (SYL macro). count_people_in_view and people_in_view removed.
    • src/status.inc: update_status (view position, people in view) removed; show_person writes row 20 (Pnn, name, M/F) and row 21 (scores); the main loop calls it only when the person changed, on every 4th frame as before. The start-up screen (“LAND MAP 64”, “GENERATING...", then “MAP READY” in the hidden text screen) is unchanged: the smoke test reads it (A5).
    • Checks: check-split now checks that both banks show person 01 every frame and that rows 22-24 are blank (it no longer counts people in view); check-keys checks names, sexes and rows 20-21; smoke expectations in project.json updated.
  • 2026-12-03 (M6.1 people's attributes, spec change approved by the user: six D&D-style scores, one byte each, P key instead of Tab, chosen person blinks):

    • src/people.inc: people_attr (16 x 6 bytes) rolled 3d6 with rejection sampling (0-5 from 3 random bits) at the end of place_people; shown_person, shown_dirty; draw_skip (the person left out of a draw for 16 of every 32 frames) sits right after move_frame so the checks can save it with the people tables. src/keys.inc reads P (column 5, row 1; new press only). src/status.inc show_person writes status line 4; the main loop calls it only when the person changed, on a frame without the status update (frame time is tight while rebuilding).
    • The variables no longer fitted below $4000 (about 290 bytes were free), so the 4,000 walk counts moved to $C000-$CF9F (reset_paths clears exactly 4,000 bytes, so the check phase byte at $CFF0 is untouched); the variables now end at $3013.
    • Found by check-split: show_person was first placed between update_status and show_number, which update_status falls into, so the people-in-view number stayed 00 and the scores were rewritten every 4th frame. Fixed before commit.
    • Scroll pauses with paths (found by check-scroll.ps1 -Long -PathTest after the M6.1 commit: 752 stall frames, allowed 606): a cell that changed while the hidden buffer was being rebuilt restarted the whole rebuild (up to 8 frames). Now the rest of that rebuild draws every cell (rb_diff off, also for the row in progress) and the changed cells stay queued for that buffer, so they are redrawn once it is ready. Cells drawn before the change were compared against the world as it was then, so only the changed cell itself can be stale, and its queued redraw mends it. Tour stall frames 272 instead of 472-752.
    • Checks: check-keys gains the ‘P held’ scenario and checks scores and status line 4 in every scenario; check-people and check-scroll leave out the draw_skip person; check-split expects all five status rows lit; every check now holds P up as well; smoke expects “P01 STR” in row 23.
  • 2026-12-03 (M5.2 worn paths):

    • src/paths.inc: walk counts (4,000 bytes, below VIC bank 1), path tiles PATH_LAND/PATH_GRASS/PATH_TREE in src/tiles.inc (dark brown patch, colour 9), decay sweep, an 8-entry change queue, and redraw of a changed cell in the hidden buffer only (dots and saved bytes kept). A buffer in the middle of a rebuild restarts it in full.
    • Found by check-scroll.ps1 -Long: the first version restarted that rebuild every frame while a queued cell still waited for the shown buffer, so the rebuild never finished and the scroll stopped (6,826 stall frames, 6,747 abandoned rebuilds in the tour). It now restarts only when a cell is new to that buffer.
    • The test build (tools/run.ps1 -PathTest, --asm-define PATH_TEST) uses a path at 4 steps, back below 2, one count less every 400 frames; at 8 / 4 / 200 frames paths almost never appeared (1 in 90 s).
    • tools/check-scroll.ps1 now saves the world and change queue with every buffer save and compares buffers with that world, skipping cells still queued for the buffer: paths appear in the normal build during the 6-minute tour (land and path share the colour byte $99, so only bitmap bytes differed). New -PathTest switch runs it on the test build. tools/check-world.ps1 tile IDs updated for the path tiles (TILE_COUNT 26). New tools/check-paths.ps1.
  • 2026-12-03 (spec change, approved by the user: worn paths instead of roads, new milestone M5):

    • The user asked to track where people walk and turn a cell into a path when its count reaches 128, with counts going down by one now and then. Choices made by the user: a dark brown worn patch (not black road pieces), a path turns back below 64, one count less every 60 seconds, and no generated roads (“remove their creation”).
    • The unfinished M4.2 work (random winding roads with short bridges) was dropped before it was committed. It passed every check except the 5-minute scroll tour, which logged only 8,173 frames (cause not investigated). Its diff was kept outside the repository as a patch file.
    • M5.1: src/world.inc no longer draws roads; the road and bridge tiles stay in src/tiles.inc, unused. tools/check-world.ps1 now fails on any road or bridge tile. tools/check-people.ps1: the expected-bitmap helper skipped people only from buffer row 21, but the saved bitmaps hold 20 rows, so a person in row 20 crashed the check (Index was outside the bounds of the array); it now skips row 20 too.
  • 2026-12-03 (colour change, asked for by the user: “the people need to be white so they stick out”): colour RAM is now white (C64 colour 1) instead of light red (10), in src/main.s (COL_WHITE). Colour RAM is shared by the people (pixel %11) and the status text, and the partly visible bottom map row shares colour RAM row 20 with the first status line, so the user chose white status text too. Spec (R2, R3.2, R6, summary, A1), project.json, docs/milestones.md, docs/manual-tests.md, README.md and the check-split messages updated together. No check depends on the colour value.

  • 2026-12-03 (spec note, decided by the user): the user found that Up + Right scrolls up and left. On the C64 SHIFT applies to both cursor keys (VICE sends the PC Up and Left arrows as SHIFT + CRSR), so Up + Right and Down + Left cannot be told apart from Up + Left. Offered extra letter keys or a joystick; the user chose to leave it as is. Recorded as a known limitation in docs/spec.md (Controls), project.json (controls) and docs/manual-tests.md (MT3.1 keys). No code change; docs/milestones.md unchanged (no task affected).

  • 2026-12-03 (scroll did not start, problem reported by the user during the M4.1 re-check: “the scroll will not move sometimes when the cursor keys are pressed”):

    • Cause (from the M3.3 tear fix, commit a40ea04, not from the bridge fix): with the view resting exactly on a cell edge, a key toward that edge (left at fx 0, up at fy 0) needs the hidden buffer rebuilt before the first step, so the view waits. A waiting view counts as still, so people_vblank drew the people into the hidden buffer and set people_flip_pending; choose_rebuild_target does nothing while a flip is pending, so the rebuild never started. This repeated every frame for as long as the key was held.
    • Fix (src/people.inc, people_vblank): when a step is wanted (step_x or step_y nonzero after get_steps) the people are drawn in the shown buffer, so the hidden buffer is free to rebuild. The tear fix stays in place.
    • tools/check-scroll.ps1: new scenario ‘restart’ stops on a cell edge and starts again from rest left, right, up and down. A scenario that never reaches its last phase now fails with a message instead of an exception.
  • 2026-12-03 (M4.1 fix, problem reported by the user: “people can walk in the water”):

    • Cause: the M4.1 bridge tiles (BRIDGE_H, BRIDGE_V, BRIDGE_X) were walkable as whole tiles, but their %01 pixels are blue water. Dots walked along a bridge's water edge, and place_people could also put a dot there at the start. This broke R2.3.
    • Fix (src/people.inc): candidate_blocked now checks the pixel. On a bridge tile it reads the tile's pattern byte for row cand_sy and blocks a %01 pixel at cand_sx. place_people picks the pixel position before the check. An assert keeps the bridges as the last tiles.
    • tools/check-people.ps1 now also checks the colour of the pixel under every dot (from the patterns and colours in src/tiles.inc): blue (6) or grey (12) fails. It reports the person-frames on bridges. The default 40M-cycle run may see none, so the fix was also checked with -Cycles 300000000 (1,408 person-frames on bridges, pass). On the old code the same run failed.
  • 2026-12-03 (M4.1, spec change approved by the user: terrain all over the world, random mix per world, roads as a grid with bridges):

    • Generator (src/world.inc): per-world class weights and tree threshold; 8x5 jittered seeds on 10x10-cell squares (a class never repeats the previous two seeds; every class appears at least once); each cell takes the nearest seed among the 2x2 nearest squares (distance max + min/2 + noise 0-3); two smoothing passes; thin water removed; shores from the four neighbours; trees on grass; roads as two rows and two columns, bridge tiles (BRIDGE_H, BRIDGE_V, BRIDGE_X; src/tiles.inc) over water. Generation takes about 4 s behind the generating message (the 3x3 seed search took about 6 s and looked the same).
    • tools/check-world.ps1 rewritten for the new rules (R1.3-R1.6): tile IDs, all classes present, exactly the road grid with crossings, bridges beside water, no one-cell-thin water, shores matching their neighbours, every 40x20 view with 3+ classes of 8+ cells, map ready within 15 s; -Runs N checks N VICE runs and the spread of the mix. Its first version wrongly required a bridge wherever a road had water on both sides; a road on a one-cell land causeway between lakes is correct, so the rule is now “a bridge has water beside it”.
    • Problem found and fixed: with textured terrain on 57% of cells the scroll rebuild took 9-10 frames (check-scroll edges: 146 stall frames, failing). src/scroll.inc now restores the hidden buffer's people bytes at rebuild start and skips cells whose tile is already drawn there (compared against the buffer's old origin; buffers that were incomplete, or after a new world, are drawn in full). Rebuilds now take 6-8 frames. The 8 extra cycles per drawn cell made one chunk overrun the frame (one missed frame in a check run), so the chunk cutoffs moved from lines 228/238 to 224/234; afterwards the main loop finished by line 248 at the latest and no frame was missed.
    • tools/check-keys.ps1 and tools/check-scroll.ps1: cycle limits raised by 6M cycles for the slower start-up (they failed with 0 frames logged). check-scroll now names the first missed frame.
    • The knowledge system was available: entries 3723-3726 recorded.
  • 2026-12-03 (colour change, approved by the user): During M3.4 manual testing the user found the background orange (“should be light brown”). The C64 has no light brown; from rendered VICE comparisons the user chose C64 colour 8 shown with VICE's pepto-pal palette (light brown). src/main.s COL_BACKGROUND = 8 (background, border, status area); tree trunks stay colour 9; project.json emulator args select the palette for tools/run.ps1 and tools/smoke.ps1. Checks after the change: pwsh -File tools/build.ps1, tools/smoke.ps1, tools/check-world.ps1, tools/check-people.ps1, tools/check-keys.ps1, tools/check-split.ps1, tools/check-scroll.ps1 all exit 0 (2026-12-03); the smoke screenshot shows the light brown background. Observation: the light red dots have less contrast on light brown than on brown. The M3.4 manual tests (MT3.2, MT3.3, MT3.4) stay pending with the new colour.

  • 2026-12-03 (M3.4): Frame budget measured with tools/check-scroll.ps1 (CPU clock at frame_start, people_moved, frame_done, interrupt entry/exit, start_rebuild, rebuild_ready), all in VICE x64sc NTSC:

    • Frame start to frame start: 16,758-17,109 cycles (17,095 per frame; wait_frame returns anywhere in lines 251-262). No frame was missed in any run.
    • Raster interrupts (top of frame and status split, including the split's wait for line 210): 411-416 cycles per frame.
    • Vertical blank work (scroll step, flip, people restore and draw): average 1,062-1,564, worst 3,701 cycles, done by raster line 45 at the latest (first map line 55). R3.3 holds.
    • Problem found and fixed in this task: with people movement inside the vertical blank, the first tour run took up to 4,426 cycles and ended at raster lines 55 and 56 twice, with two stores into the shown bitmap at line 55, when nearly all 16 people were in view near the top of the map. People movement now runs in the main loop after the status update and is drawn at the next vertical blank (src/people.inc, src/main.s); nothing visible changes.
    • Main loop while rebuilding: busy up to 17,055 cycles, idle at least 43, done by line 250: the rebuild uses the frame's spare time as designed.
    • A4 (rebuild over 8 frames allows 1 pixel per frame): partly met. Of 1,911 rebuilds in the tour, 222 took 7 frames, 1,581 took 8, 98 took 9 and 10 took 10. A rebuild over 8 frames delays the next cell step by a frame (a stall): 257 stall frames in 15,216 moving frames (1.7%), plus a short wait when a scroll starts from rest. The short scenarios (edges, middle, reverse) needed 8 frames every time.
    • Long runs (R5.3, R3.2): the tour (six laps over the whole world by rows and by columns, 21 stops) found both buffers equal to the world plus the right dots at every stop and at the end; the per-frame checks found no half-built buffer on screen and no stores into the shown map while displayed.
    • Timing bar: pwsh -File tools/run.ps1 -Target c64 -TimingBar assembles with --asm-define TIMING_BAR into build/land-map-64-timing.prg (cl65 -D does not reach ca65; tools/lib.ps1 now passes asmDefines). Headless screenshot while scrolling: cyan border through the map and status area, red stripe at the split, brown at the bottom. The normal build has no timing-bar code.
    • The knowledge system was not available (Docker/PostgreSQL not running).
    • 2026-12-03: the user had not noticed any scroll pauses and chose to leave the rebuild as it is; A4 is recorded as partly met in docs/spec.md and project.json.
  • 2026-12-03 (M3.3 fix): The user reported a small tear at the top of the screen when scrolling left or right. Cause: when a scroll started from rest, choose_rebuild_target restarted the rebuild of the hidden buffer in the same frame that people had been drawn into it with a flip pending; the next vertical blank showed that half-rebuilt buffer (top rows already one cell on) for up to 8 frames, until the next cell crossing. It happened for every direction, not only left and right. Fix (src/scroll.inc): no rebuild restart while people_flip_pending is set; the other buffer is rebuilt from the next frame. tools/check-scroll.ps1 now checks in every frame that the shown buffer is complete and built for the view's cell: on the old code it failed in all three scenarios (frames 30-37, ready 0, origin one cell on); it also checks that nothing is stored into the shown buffer's map while the map is displayed (no such store was found, before or after the fix).

  • 2026-12-03 (M3.3, resumed and finished): tools/check-scroll.ps1 now drives each scenario as phases (phase byte at $CFF0, VICE conditional checkpoints on people_moved; frame counts with “ignore” did not work). VICE 3.10 needs parentheses around each comparison joined with && (without them the condition never fired), and runs checkpoints at one address in definition order in the same hit, so phase changes are defined latest first. A rejected checkpoint shifts the numbers of the later ones, so both new checks fail on any monitor “ERROR”. The check found a mistake in itself, not in the program: while the view is still, people are drawn into the hidden buffer and shown at the next flip, so the shown buffer holds the previous frame's dots; the final comparison now checks both buffers byte for byte (dots included).

    • Stalls (a held key that did not move the view): 5 in the edges run (1,546 frames), 1 in middle, 3 in reverse. A4 (rebuild over 8 frames within the frame budget, 1 pixel per frame) holds in VICE for these runs; the frame budget itself is measured in M3.4.
    • A7 under vertical fine scroll: tools/check-split.ps1 now scrolls down three cells and back, so every map y-scroll value is split. All starts are inside the measured window 210:53-64. At y-scroll 2 (line 210 is a bad line, shorter delay) starts were 210:58-64, so the margin to the window's end is 0-6 cycles there. The window was measured at y-scroll 3 only; the user's MT3.3 boundary check while scrolling up and down is the confirmation.
    • The digits check in tools/check-split.ps1 was changed: since M3.3 the status updates every 4th frame and people may be drawn into the shown buffer, so “digits = hidden buffer's drawn count” no longer applies. It now compares the digits after each update with the script's own count of dots at least partly inside the visible window.
    • tools/check-keys.ps1 no longer checks the M3.1 border indicator (removed in M3.3). docs/manual-tests.md MT3.1 and MT3.3 and docs/toolchain.md updated.
    • The knowledge system was not available (Docker/PostgreSQL not running), so nothing was recorded there.
  • 2026-12-03: Spec change approved by the user: R3 reworded for scrolling (people drawn in the shown buffer during vertical blank while a scroll rebuild runs), and drawing people relative to the view moved from M3.4 to M3.3. Acceptance criteria unchanged.

  • 2026-12-03 (M3.2): A7 partly checked in VICE: with the map at y-scroll 3, the split's mode writes land in the measured border window every frame (tools/check-split.ps1). Under vertical fine scroll it is not checked yet (M3.3). Fixed while doing M3.2: the temporary M3.1 border indicator wrote $D020 every frame, which showed a single light grey pixel in the bottom border (consistent with the VIC-II grey-dot effect of a colour-register write mid-line); it now writes only when the colour changes, and the pixel is gone from the smoke and split-check screenshots. tools/check-people.ps1 now compares only the 20 map rows of each bitmap.

  • 2026-12-03: Spec change approved by the user: 5-line status area below a 20-row map (new R6, R1 and R5 updated, assumption A7 added). Old M3.2 is now M3.3 and old M3.3 is now M3.4; the new M3.2 is the split screen. M0-M3.1 results are unaffected.

  • 2026-12-03 (M2.2): VICE x64sc NTSC runs 263 lines x 65 cycles = 17,095 cycles per frame (measured with tools/check-people.ps1). The spec's budget said 17,030 (the 262-line 6567R56A figure). The difference does not affect any acceptance criterion. With the user's approval (2026-12-03), docs/spec.md and project.json now say 17,095.

  • 2026-12-03 (M3.1): The KERNAL timer interrupt is now switched off at start-up (keys are read from the matrix directly). RUN/STOP alone no longer breaks out (nothing scans for it); use a VICE reset to leave. RUN/STOP + RESTORE has not been tested. Fixed a parsing bug in tools/check-people.ps1: it could read the monitor's ASCII column as extra bytes when people's coordinates were printable characters. The bug could only cause false failures, so the earlier M2 passes stand.

  • 2026-12-03 (M2.2): A3 checked in VICE only: flipping the two buffers with the $DD00 bank bits in vertical blank shows the same map in both banks and passes the byte-exact buffer check. The user's MT2.2 visual check is still pending.

  • Generated 2026-12-03. 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.