# Phase 0: complete (2026-11-12) Phase 0 (research and groundwork, no emulator code) for the SNK Neo Geo board was done in two sessions: the first (2026-11-11) pinned the references, made the census, ran the MAME recipe and read the main hardware sources, and was stopped before writing; the second (2026-11-12) checked that work, corrected the census's protection labels against MAME's driver, ran MAME on an encrypted set and on the AES, and wrote every document. The deliverables: | Deliverable | Where | | --- | --- | | Licence, ignore rules, README | `LICENSE`, `.gitignore`, `README.md` | | One document per subject, the index, start-here | [README.md](README.md) | | Oracle ladder | [validation.md](validation.md) | | MAME recipe, as run | [mame-oracle.md](mame-oracle.md), `scripts/mame_trace.py` | | Fetch scripts with real pins | `scripts/fetch_references.py --verify`: "all pins satisfied" (2026-11-12) | | Census | `tests/census/census-2026-11-12.txt` (`scripts/census.py`) | | Handoff brief with U1-U19, C1-C40 and the open decisions | [handoff-brief.md](handoff-brief.md) | ## How the research was done - Read in full or in the parts cited: MacDonald's `mvstech.txt`; SNK's `NG.pdf` (a full text dump was made in the session scratchpad, not committed); about 90 of the 224 pinned Neo Geo Development Wiki pages (a source set aside on 2026-11-26: see below); MAME 0.285's `neogeo.cpp`, `neogeo_v.cpp`, `neogeo_spr.cpp`, `ng_memcard.cpp`, `bus/neogeo/*`, `bus/neogeo_ctrl/*`; Geolith's LSPC and NONBUGS; FinalBurn Neo only to cross-check protection; the READMEs and file lists of the HDL repositories. - The second session used three research subagents (video; system ROM and inputs; cartridges); the main MAME claims they returned were spot-checked against the source before going into the documents. - **Not opened**: anything under `furrtek/SiliconRE` beyond its README and file names, and any Verilog body (open decision 1). - `ym2610-python`'s finished Phase 0 (`ed216d0`) was read for the sound boundary. ## Rule notes - `reference/` is about 1.3 GB (SiliconRE 567 MB, MAME's XML 314 MB, the MiSTer core 235 MB), on the data disk. - MAME traces (about 190 MB) and runs are in the git-ignored `tests/mame_traces/` and `tests/runs/` (the latter holds the `aes.zip` symlink to the curated `neogeo.zip`; no ROM was copied). - The 2026-11-11 census output, whose labels were wrong, is set aside in the ignored `trash/`. - `scripts/pinned_repos.json` sparse-checks MAME's `upd4990a.*`, which does not exist (the device is `upd1990a.cpp`); the calendar facts were read from another local MAME tree. Fix in M0. - No sibling repository was modified; nothing was pushed; no remote was created; nothing was deleted. ## Later change: the wiki set aside (2026-11-26) The Neo Geo Development Wiki was a tier-3 source throughout Phase 0 (pinned 2026-11-11, cited in every document 2026-11-12), and Aubrey kept it on 2026-11-12 when he excluded SiliconRE. On 2026-11-26 he set it aside too, for respect and not for licence: its main author is the SiliconRE author and many chip pages restate his traces. On branch `author-respect`: its 224 pins left `scripts/pinned_files.json`, `scripts/pin_wiki.py` and `scripts/wiki_pages.txt` were removed (copies and the fetched pages, moved unopened, are in `/data/backup/neogeo-python-furrtek-lineage-2026-11-26/`), and every `[wiki: ...]` citation was either replaced by a MacDonald, SNK or MAME citation that states the same fact or retagged `[HYPOTHESIS: was wiki Page]`. The record of each, and what would settle the hypotheses, is in [provenance.md](provenance.md), "Author respect".