# Restart rules This repository is a restart. The first `ym2610-python` (Phase 0, 2026-11-11 to 2026-11-13) wrote its FM, SSG, ADPCM-A, ADPCM-B, register and clocking documents by reading the source of YM2608-LLE (`fmopna_2610.c`, nukeykt, GPL-2.0) line by line: 94 `LLE:line` citations with quoted code fragments, a sibling study that compared the die models "line for line" and recommended transcribing, a handoff brief whose decision 1 said the core would be "transcribed from the die-derived model", a rung 0 that expanded the core's ROMs from the model's lines, and a referee build that searched the model's source with `grep`. Its own wave-1 audit (2026-11-13) found that a core built from those documents would be a GPL transcription. On 2026-11-19, under the wave-2 rewrite rules, the old repository was archived (local copy, `zzz-ym2610-python`, under the family's backup area for Phase 0 restarts; never read again) and this one was started from scratch. No commit of the old history was clean enough to start from: its first commit already pinned furrtek's translated sheet. ## What came over | Carried | Change on the way | | --- | --- | | `LICENSE`, `.gitignore` | none | | `scripts/fetch_references.py`, `scripts/reference-pins.sha256` (the pins) | dropped MAME 0.229's GPL `fm.cpp`/`ymdeltat.cpp`/`2610intf.cpp`, FinalBurn Neo (non-commercial) and jt12 (GPL-3.0); Geolith's BSD-3 `ymfm_opn.c` is now a required pin; each pin's note says how the source may be used | | `validation/lle2610_probe.c` (the closed-box probe) | the YM2610B mode removed: the bonding input is held at 0 | | `validation/build_referees.sh` | the build fix no longer searches the model's source: the two lines it drops are the ones the compiler's own errors name (file and line), checked by count | | `scripts/mame_ym2610_tap.lua`, `docs/mame-oracle.md`, `docs/users-and-census.md` (MAME run headless, the census) | ROM paths through `MAME_ROMPATH`; local paths replaced by descriptions | | the owner's decisions of 2026-11-12 | in `docs/decisions.md`; decision 1 rewritten and **flagged for the owner** | Not carried: every specification document (`fm`, `ssg`, `adpcm-a`, `adpcm-b`, `registers`, `clocking-and-output`, `siblings`), the old handoff brief's technical body, `start-here`, `validation`, `phase0-status`, the old README, and the old build folder. The fetched documents (`reference/docs`, `reference/pages`) and the census outputs (`reference/census`) were kept: third-party material at pins and our own counts. ## The rules 1. **No GPL, LGPL, MPL, non-commercial or unlicensed source is read**: for this chip, YM2608-LLE, YM2203-LLE, Nuked-OPN2, jt12/jt10, MAME's pre-0.230 `fm.cpp` and `ymdeltat.cpp`, and FinalBurn Neo. Check /data/emu/emulator-lineage/docs/sources.md. 2. **The archived repository is not read**, in any form. 3. **Translating a model statement by statement is copying**, in any language. 4. **Permitted sources:** Yamaha's YM2610 application manual (the ajworld transcription), the YM2608 (OPNA) application manual, the YM3016 data sheet and the 1990 LSI catalogue (facts, cite page or section); **Geolith's `ymfm_opn.c`** (Rupert Carmichael, BSD-3-Clause, covers the YM2610 including ADPCM-A/B) and **ymfm** (Aaron Giles, BSD-3-Clause), code and tables OK with their notices; MAME 0.285's BSD-3 `ymopn.*`; Dialogic's *ADPCM Algorithm* note (1988) for the ADPCM-A step table, which is floor(16 x 1.1^n); hardware recordings. **Not** the neogeodev wiki: it was allowed here (facts only, middle rule) until Aubrey set it aside on 2026-11-26 for its main author's wishes (furrtek objects to AI use of his work; charter licences point 8, author respect, tracked apart from licence). Documents it merely hosts are used from an independent copy. 5. **A model may be run, never read.** YM2608-LLE's YM2610 build is driven through `fmopna_2610.h` only (`lle2610_probe.c`, `$EMU_TOOLS_GPL2/tools/ym2608-lle/`). Its `.c` files are compiled, never opened, searched or quoted. A value got this way is tagged `OBSERVED (YM2608-LLE 7a2aca7)` and is overruled by any document or hardware number. 6. **A difference from the closed box is written down, not fixed**, unless a document or a hardware measurement independently says the core is wrong. 7. **Every rule names its source** with an evidence tag (MEASURED, DIE, TEST ROM, DOC, OBSERVED, FITTED, HYPOTHESIS). 8. **The middle rule.** A fact is usable when someone established it on real hardware and says so in prose; a GPL program's comment saying so does not by itself count. 9. **Nothing by furrtek.** The model's YM2610B mode is not driven, probed or modelled (the question whether it rests on his photograph is open). 10. **ym2612-python's old `LOG_SIN`/`EXP` tables are not a source**: they came from the archived Nuked-derived core. The restarted ym2612-python may be compared with only where its own provenance names permitted sources. ## The order of work 1. Rewrite the specification from the permitted sources (this restart's first job). 2. Re-ask the sibling question (FM and SSG reuse) by running the models, not reading them. 3. The owner confirms decision 1 as rewritten (`docs/decisions.md`). 4. Build the core to the rungs in `docs/handoff-brief.md`.