# megadrive-python's old sound referees From the emulator family's megadrive-python repository: `validation/build_referees.sh`, `opn2_ref.c`, `psg_ref.c` and `lle2612_ref.c`, parked on 2026-11-21 at megadrive-python's history reset (wave B) as they stood at `fcef88d` (old history); kept under `validation/` as they were. ## What it measures Output of two die-derived models of the Mega Drive's FM chip and PSG (no current user); a third, the YM2608-LLE harness, moved to `emu-tools-gpl2` on 2026-11-24 (below). ## Who uses it Nothing runs them now: the scripts that drove megadrive-python's withdrawn in-board sound cores against them were removed in the wave 2 rewrite. The restarted cores have their own harnesses (`../ym2612-python/`, `../sn76489-python/`). Kept for the refactor. ## Contents - `validation/opn2_ref.c`: A harness around Nuked-OPN2. Upstream: Nuked-OPN2 (Nuke.YKT), LGPL-2.1-or-later, `335747d`. - `validation/psg_ref.c`: A harness around Nuked-PSG. Upstream: Nuked-PSG (Nuke.YKT), GPL-2.0-or-later, `d15a168`. - `validation/lle2612_ref.c`: **moved on 2026-11-24** to the GPL-2.0-only repository `emu-tools-gpl2`, at `$EMU_TOOLS_GPL2/tools/ym2608-lle/lle2612_ref.c`, with its build step as `tools/ym2608-lle/build_lle2612_ref.sh` there (README: `tools/ym2608-lle/`). Why: by Aubrey's rule of 2026-11-24 the YM2608-LLE files it compiles and includes (the YM2612 build wrappers, with no "or later" grant beside the repository's GPL-2.0 LICENSE) are GPL-2.0-only, and GPL-2.0-only code cannot sit in this GPL-3.0-or-later repository (`../../docs/upstreams.md`). Nothing is left at the old path: nobody runs it. The binary the new build script makes is byte-identical to the one the old script made (checked 2026-11-24). - `validation/build_referees.sh`: Builds the two Nuked referees from megadrive-python's checkout (paths relative to it). Its YM2608-LLE step moved with `lle2612_ref.c` on 2026-11-24 (an SPDX line saying MIT, the origin's licence, was added then). Upstream: the two above. ## Licence and notices Our code (alewman), first published in megadrive-python (`../../notices/MIT-emulator-family.txt`); GPL tools as built. Upstream code is not committed here, except where a file above says it carries upstream lines; each tool fetches and builds its upstream at the pin from the consuming repository. This repository is GPL-3.0-or-later (`../../LICENSE`). ## Outputs Every value these tools give is a closed-box measurement: tag it OBSERVED with the upstream and its pin, and let any document or hardware measurement overrule it (`emu-tools/docs/wall.md`). Nothing here has been refactored onto the shared contract yet (`emu-tools/docs/contract.md`); that is the next job. ## Now shims (2026-11-23) `validation/opn2_ref.c` and `validation/psg_ref.c` are one-line shims that include the Nuked harness family's sources (`../nuked/src/opn2_events.c`, `psg_events.c`; `../nuked/README.md`). `psg_ref.c` builds the same program as before (identical stripped binary). `opn2_ref.c` now reads the status byte through the model's public read call instead of its state structure (the family exports pins and documented registers only); its output is the same (checked on a write script that sets BUSY and both timer flags, both chip modes). `lle2612_ref.c` (YM2608-LLE, not a Nuked model) was left for the LLE wave, which moved it to `emu-tools-gpl2` on 2026-11-24. Nothing runs any of them now; the two shims still build identical binaries through the edited `build_referees.sh` (checked 2026-11-24).