# Puzzler 2000 (Proto): the every-key script garbles the picture and parks the CPU; MAME does not **Status: closed 2026-11-19, not a board fault (as far as the evidence goes).** MAME does the same once Option 1 really reaches it; the crash is the program's own. See "Resolution" at the end. Found while checking the 2026-11-19 library sweep (lynx-rust `docs/sweep-2026-11-19.md`). Board behaviour, not a transcription fault: lynx-rust and this repository at `bc5f35e` are identical in lockstep on this case (1,200 slices, every bus cycle). A suspect only: whether the hardware does what MAME does is not known. ## What happens `Puzzler 2000 (World) (Proto) (Unl)` (LYX and LNX sets; a 1998 homebrew prototype made with BLL, so the program itself may be at fault), Lynx II row, real boot ROM, with lynx-rust's `scripts/inputs/all-keys.txt` (A at slices 300 and 336, the four directions, B, A, Option 1 at 588, Option 2 at 624, Pause held 660-680 and 720-740, then combinations): - by slice 700 the top third of the picture is noise (random pens) above a band of noise and the green screen; the picture never changes after slice 707; - over the last 300 of 2,700 slices the CPU is at one PC (`$C4E5`, S = `$6B`), so it is parked, not running the game. Shorter scripts (lynx-rust `lynx-sweep`, 1,200 slices): A at 300 then Option 1 at 588, or then Option 2 at 624, each freeze the picture one slice after the press, ending with S at `$AD` and `$98` (the sweep's run ends with S = `$FB`): perhaps a stack that keeps growing. A at 300 then the directions, B and A, or then Pause, keep running (over 400 distinct pictures). With the sweep's script (`aab.txt`: A at 600 and 900, B at 1200, A at 1500) the game goes from its title to a green screen with the "PUZZLER 2000" oval and stays there: MAME shows the same screen at the same points (looked at, own judgement), so that run is not a suspect. OBSERVED (MAME 0.285, closed box, `lynx -bios a`, the every-key script replayed by an autoboot Lua script on MAME's frame count, which runs at about 60 a second like our slices): at frame 1,199 MAME shows the green screen with the oval and no noise. ## Repro # lynx-rust: the case, both boards printf 'suspect/Puzzler all-keys\t1200\t$NOINTRO/Atari - Atari Lynx (LYX)/Puzzler 2000 (World) (Proto) (Unl).zip\t--input $INPUTS/all-keys.txt\n' > /tmp/puzzler.tsv scripts/lockstep.py --cases /tmp/puzzler.tsv # the picture and the parked PC target/release/lynx-sweep "$NO_INTRO_DIR/Atari - Atari Lynx (LYX)/Puzzler 2000 (World) (Proto) (Unl).zip" \ --slices 2700 --input scripts/inputs/all-keys.txt --png-at 1000:puzzler.png ## Leads (HYPOTHESIS) The freezes follow Option 1 / Option 2 presses, so the first place to look is what the program reads after them (SWITCHES/JOYSTICK at `$FCB0-$FCB1`, the cart or EEPROM lines) and whether an interrupt is taken where MAME takes none. Bisect with `lynx-trace --detail SLICE` on the slice of the Option 1 press. Not fixed here. ## Resolution (2026-11-19, a bounded look) **The MAME comparison never pressed Option 1.** MAME 0.285's Lynx input fields are named `Opt 1` and `Opt 2` (listed from `manager.machine.ioport.ports[":JOY"].fields`), so a script setting "Option 1" changes nothing. Pressing the real field (A at frame 300, `Opt 1` held 6 frames at frame F, 18 s, `lynx -bios a`, the LYX file, closed box): for F = 520, 540, 560, 570, 580, 590, 600, 610, 620, 640, 660, 700 and 760, MAME ends frames 900-1,000 with the CPU in zero page or parked (one PC, e.g. `$88E5`, `$0000`, `$C5E5`) or looping in the interrupt handler at `$C4E5-$C4FD` with the stack pointer far from `$FF` in 11 of the 13 runs; at F = 620 and 660 it is back in its main loop (`$C1F9`/`$C1FC`, S = `$FF`) (OBSERVED). Whether a press crashes depends on when it lands, which fits the race below. Without `Opt 1` MAME keeps showing the title (the earlier comparison). **What the program does** (this board's bus trace, lynx-rust `lynx-trace --detail`, identical to lynx-python): on Option 1 the code at `$C15B` (`LDA $FCB0` = `$08`) clears the interrupt enables of timers 0 and 2 (`TRB $FD01`, `TRB $FD09`) and starts reading a file from the cart through `$C6E1` (`LDA $FCB2`, then `INC $1E`/`$1F`, the length counter) and the block select at `$C6EC`. But a sample stream started a few slices earlier enabled **timer 1**'s interrupt (`$98` to `$FD05` from `$C775`, about 8 kHz), and its handler (`$C4E5` -> `JMP ($0400,X)` -> `$C77A`) reads the next byte through the same `$C6E1` routine and writes it to `$FD22`. Timer 1 is not disabled, so the handler keeps reading the cart port and counting the loader's length counter in the middle of the loader's block selects and copies; the copy runs on through memory (blocks up to `$FF`, the destination into page 1), overwrites the stack and the code, and the CPU ends in zero page and the interrupt handler. HYPOTHESIS: a bug in this 1998 prototype (Option 1 stops the wrong timers); a real Lynx would crash the same way. What would settle it: the cart on a real Lynx (none on hand). The timer and interrupt behaviour involved is the board's tested model (M2 timers, timers2: 52/52), and nothing in it was changed. The smoke list keeps Puzzler 2000 (no presses: its title, unchanged).