# Provenance What this repository's knowledge rests on, and what was removed because it rested on reading another implementation's source. The rules are in [restart.md](restart.md); the family's register of sources is `emulator-lineage/docs/sources.md`. ## The scrub of the inherited Phase 0 documents (2026-11-14, restart rule 10) The documents inherited from `e22ea44` were written under the older rule ("GPL source: read, cite, never copy"). Every statement whose support was reading Gearlynx's, Handy's, Holani's, MAME's, the MiSTer core's or another implementation's source was struck or re-sourced. Kept: the pins, the captures, the census, the formats work (milestone 0), facts from the Epyx documentation, schematics, the lynx-tests guides and sources (MIT), forum posts reporting hardware findings, and what running an emulator shows (tagged OBSERVED). | File | Statement | Was supported by | Now | | --- | --- | --- | --- | | start-here.md | the specification "as Markdown" inside Gearlynx's repository | a file in a GPL repository | pointer struck (the HTML and the Rev P scan remain) | | start-here.md | interface request to `65c02-python` | | renamed `w65c02-python`; marked answered by its bus contract | | timing.md | no-bus CPU cycles "Gearlynx and Holani charge 5" | emulator source | struck; restated: a 65C02 has no bus-free cycle, a dummy read is charged as a read (U1, HYPOTHESIS) | | timing.md | page mode's "run is open flag is Gearlynx's representation" | emulator source | struck; the LT tick counts are the rule | | timing.md | video burst "about 28 ticks of ownership in Gearlynx's model", "starts about 8-12 ticks after the LCD group", "line 0 gets one extra fetch" | emulator source (and an unverified mix with LT) | struck; to be measured from the LA captures and re-read from LT video-timing | | timing.md | refresh "Gearlynx models 4 ticks every 256" | emulator source | struck; U4 restated as wholly unknown | | timing.md | the list of Suzy models by file (Gearlynx `src/suzy*.h`, Felix `SuzyProcess.cpp`, Holani `src/suzy/*.rs`) | browsing emulator source | struck | | timing.md | "What MAME does instead": flat 4 MHz (`lynx.cpp`), `blitter_timer`, fixed 160 x 105 screen | MAME source | replaced by what running MAME shows: uniform 250 ns cycles in its trace, 66,780 per frame on Zaku (OBSERVED) | | timing.md | MAME frame period 66,780 cycles | running MAME | kept, tagged OBSERVED | | undocumented-behavior.md C1 | MAME `lynx.cpp` quote "stz, but not bbr bbs"; "MAME, Handy and Felix model one CPU for both" | emulator source | struck (Wikipedia, lynx-tests `cpu` 7 and AtariAge 283383 remain) | | undocumented-behavior.md C2 | BIT #imm and the *California Games* title from Handy's `c6502mak.h` | Handy source | struck | | undocumented-behavior.md C5 | Handy's *Championship Rally* fix (`mikie.cpp`) | Handy source | struck (title kept on the smoke list as a candidate); "Handy and Felix did not do this" re-sourced to the forum thread, which says so | | undocumented-behavior.md C7 | MAME and Handy update the sign on a low-byte write "or Stun Runner hangs"; Handy's `$FFFFFFFF` initialisation | emulator source | struck; the specification against lynx-tests `math` 3 remains | | undocumented-behavior.md C8 | stereo registers "implemented by Felix, Holani and Gearlynx" | emulator source | struck; addresses kept as community knowledge, only a comment in lynx-tests names MSTEREO | | undocumented-behavior.md C9 | MAME's collision table (`lynx_m.cpp:37-60`) as a second reading | MAME source | struck; the LT table is the reading | | undocumented-behavior.md C15 | MAME's `vblank_time` 2,500 µs | MAME source | struck | | undocumented-behavior.md C16 | `lynx.cpp` comment on the unreadable byte; MiSTer's ROM name | emulator source | re-sourced: Appx 2 (MAPCTL answers at `$FFF9`) and `mame -listroms` (OBSERVED) | | undocumented-behavior.md known-hard table | *Hard Drivin'*, *Dirty Larry* (Handy `susie.cpp`), *Qix*/*Blue Lightning* and *Fat Bobby*/*Block Out* (MAME `lynx_m.cpp`), *Alpine Games* (`susie.cpp`) | emulator source | citations struck; titles kept as smoke candidates; Alpine's protection SCB re-sourced to lynx-tests `sprites2` | | undocumented-behavior.md U1, U4, U7, U9 | "emulators use 5"; Gearlynx's refresh model; MiSTer RTL states no source; Holani credits Spruck's pages | emulator source | struck or restated | | cartridge.md | EEPROM wiring "read it from" Handy's `eeprom.h` and Gearlynx's `eeprom.cpp` | emulator source | struck; permitted sources named: cc65's EEPROM driver (zlib) and the 93Cxx data sheets (U8) | | cartridge.md | boot paths: Holani `src/rom.rs`, Handy "HLE" | emulator source | re-sourced to observation (Holani with and without `lynxboot.img`) and Felix (MIT) | | cartridge.md | boot frame arithmetic from `lynx-encryption-tools` | a repository with no licence | struck; HAMLET (MIT) remains; the unlicensed repository is no longer fetched | | cartridge.md | `.com` notes (Handy, MAME `verify_cart`); fewer-than-256-pages note (`lynx_m.cpp:2102`) | emulator source | struck; the second re-sourced to the lynx-tests ROMs we hold | | cartridge.md | LNX header offsets 0-58 "Handy's ... `cart.h`" | Handy source (zlib) | re-sourced: our 22 headers (observed) and cc65's `exehdr.s` (zlib, permitted by rule 4) | | cartridge.md | contents of emulators' cart tables | emulator source | struck (exclusion kept) | | cartridge.md | boot ROM at a machine path; "`lynx.cpp` comment"; "NO_DUMP" for Lynx II | machine path; MAME source | path replaced by `$MAME_ROMPATH`; re-sourced to Appx 2 and `-listroms`; NO_DUMP struck | | validation.md | MiSTer RTL file list, "read for facts only" | browsing GPL source | struck; MiSTer is not used | | validation.md | Holani "cycle-stepped", its ROM file; Gearlynx `src/no_bios.h`; Handy "host decryption"; MAME's driver written from BLL and cc65 "(its header says so)" | emulator source | struck | | validation.md | Holani's `unwrap()` of `SET_ROTATION` | learned while running it | kept as an observed trap | | validation.md | licences line "read-and-cite-only" | the older rule | replaced by "closed box only" | | mame-oracle.md | "Sources read at tag mame0285"; trap 5 (cart loader rules), trap 8 (`-quik` from source); the ten-point "What MAME gets wrong" list | MAME source | struck; replaced by three observed facts (uniform cycles, one `G65SC02` and no Lynx II row in `-listdevices`, 66,780 cycles per frame) | | mame-oracle.md | device list | `-listdevices lynx` | re-run 2026-11-14 and kept as OBSERVED | | handoff-brief.md | "Read, cite by file and line, write our own"; `65c02-python`; SuzyTiming exit; lynx-tests from the release zip; `sigrok-cli` | the older rule | replaced by the restart rules; `w65c02-python`; SuzyTiming dropped (unlicensed source); tests built from source; our own `.dsl` reader | ### What the scrub did not change - The milestone 0 code (`src/lynx_python/cart/`, `bootrom.py`) and its scripts are clean and stay (restart.md). Its reading of LNX bytes 59-60 rests on cc65's `exehdr.s` (zlib). - The lynx-tests guides (`lynx-*.md`, MIT) are the main prose source for measured timing. Where a guide says a figure came from an emulator rather than a console, the specification says so beside the figure. ## References as fetched (2026-11-14) `scripts/pinned_repos.json` was narrowed so that nothing the rules forbid is fetched: Gearlynx to its LICENSE, README and logic-analyser captures; MAME to `hash/lynx.xml`; Felix to its README, CHANGELOG and LICENSE; libretro-handy, the MiSTer core, SuzyTiming and lynx-encryption-tools dropped. Holani is fetched only to be built as a closed box. Nothing was copied from the archived repository. ## Code written in this repository Every behaviour in `src/lynx_python/` carries an evidence tag beside it. No emulator's source was open while it was written (none was fetched). Sources used: the Epyx specification (HTML and Rev P scan), the lynx-tests sources and guides (MIT), the logic-analyser captures (data), HAMLET (MIT) for the boot frame, cc65 (zlib) for the LNX header and EEPROM wiring, and closed-box runs of MAME 0.285 and Holani 1.0.0 for detection only.