Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

13KB

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) pending (MT3.2, MT3.3, MT3.4)

Notes

  • 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 (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.