# Validation: the oracles and what they gave ## The oracles No YM2610 hardware, recording or hardware test ROM is on hand (the owner's hardware is a Super Famicom and an early Genesis), so nothing here is MEASURED and the top tier is empty. | Tier | Oracle | Pin | Licence | How it is used | | --- | --- | --- | --- | --- | | 1 | hardware measurements or recordings | none | | wanted: a Neo Geo's OPO/SH1/SH2 and ROM-bus pins on a logic analyser | | 2 | YM2608-LLE (nukeykt), YM2610 build, from John McMaster's decap | https://github.com/nukeykt/YM2608-LLE @ 7a2aca7, not fetched here since 2026-11-24 (Aubrey) | GPL-2.0 | **closed box**: built since 2026-11-24 by the tool itself (`$EMU_TOOLS_GPL2/tools/ym2608-lle/build.sh`, ym2608-lle 0.1.0, which `validation/build_referees.sh` calls; before then by that script from a fetched copy), driven by `lle2610_probe.c` (a GPL tool kept outside this repository since 2026-11-22, at `$EMU_TOOLS_GPL2/tools/ym2608-lle/lle2610_probe.c`) through input and output pins only; its `.c` files are never opened; values tagged OBSERVED (YM2608-LLE 7a2aca7); the rungs' judge | | 2 | YM2203-LLE, Nuked-OPN2 (nukeykt) | @ 817387fd89affd0db5331034d6ae04d919e25a5e, @ 335747d78cb0abbc3b55b004e62dad9763140115 | GPL-2.0, LGPL-2.1 | closed box, for [siblings.md](siblings.md) only; not run in this restart; not fetched here since 2026-11-24 (Aubrey): run only through the family's GPL tools | | 3 | Yamaha YM2610 manual (ajworld), YM2608 manual (translation), 1990 LSI catalogue (which holds the YM3016 sheet, pp. 32-33) | SHA-256 pins in `scripts/reference-pins.sha256` | no licence (facts) | read, cited by section or page | | 3 | Dialogic *ADPCM Algorithm* (00-1366-001, 1988) | as cited in msm6295-python `docs/decoder.md` | document (facts) | the ADPCM-A step list; only that citation was read | | 4 | ymfm (Aaron Giles) | 81aec25 | BSD-3 | read; tables and formulas taken with the notice (NOTICE); cited file:line | | 4 | Geolith `ymfm_opn.c` (Rupert Carmichael, a C port of ymfm) | 05ddef5 | BSD-3 | read; notice in NOTICE; agrees with ymfm on every YM2610 point cited | | 4 | MAME 0.285 `ymopn.cpp`/`ymopn.h` | f379cd0 | BSD-3 | read (the device wrapper: ROM regions and clocks) | | 5 | MAME 0.285 run headless | `/usr/games/mame` 0.285 | GPL-2.0+ (binary) | a detector and a source of real drivers' register streams ([mame-oracle.md](mame-oracle.md)); its audio is not compared at Phase 0 | | - | Neo Geo Development Wiki | none since 2026-11-26 (11 pages and its `YM3016.pdf` unpinned, moved aside unopened) | | **set aside** (author respect, not licence: [provenance.md](provenance.md)); its former facts are `[HYPOTHESIS: was NGD page]` or dropped where another source says the same | Tag conventions (methodology.md, "Evidence in the specification"): OBSERVED for the closed box (and MAME, when run); DOC for documents and for permissive code read as a documented implementation (file and line named); HYPOTHESIS where a reason is guessed. FITTED is not used yet. ## The closed-box run of 2026-11-19 `sh validation/build_referees.sh && reference/build-referees/lle2610_probe` (then with `YM2610_GPL_TOOLS` set; since 2026-11-24 `EMU_TOOLS_GPL2`, and the program at `$EMU_TOOLS_GPL2/tools/ym2608-lle/build/lle2610_probe`, byte-identical: sha1 `52e2118d`), probe at commit 26b86c9 plus a comment-only edit; gcc 15.2.0; the full output is `validation/results/lle2610_probe-2026-11-19.txt` (about 12 s on the shared machine). The build drops the two lines the compiler's own errors name (count checked), without reading the source. | Quantity | Closed box | Documents and ymfm | Note | | --- | --- | --- | --- | | sample period | 144 clocks | ymfm clock/144 | | | phi S | 1 clock in 3, 48 bits a sample | | | | serial word | 16 bits, LSB first, offset binary; L bits 15-30, R 39-54 | YM3016: 16-bit input, float inside the DAC | | | FM columns | column 0 of both parts silent; 1, 2 sound | ymfm mask $36 | | | slots | +0 +4 +8 +C keyed by D4 D6 D5 D7 | OPNA Table 2-2 agrees; AM's table does not | C11 | | FM full scale | +-4084 at TL 0; 2042 at TL 8; 1021 at TL 16 | ymfm 8168 >> 1 | | | CH2 mode $40 | slot 1 $A9, 3 $A8, 2 $AA, 4 $A2 | OPNA agrees; only the set-aside wiki disagreed | C10 | | CH2 mode $80 | all four at the $AA/$AE pitch | ymfm: separate F-numbers | C12, U8 | | LFO AM period (rates 7, 6, 0) | ~610, 964, ~13,100 samples | manual/ymfm ~768, 1152, ~13,950 | C9, U6 | | SSG tone | TP 10: 640 clocks; TP 0 = TP 1 = 64 | phi M / (64 TP) | | | SSG levels | 32 codes, 0 = 1; fixed n = code 2n + 1; sum of 3 channels linear | OPNA Table 3-1 | decision 5 table | | SSG envelope step | 32 x EP clocks | phi M / (1024 EP) per cycle | | | BUSY | rises 13 clocks after /WR falls, drops 200-205 after; every part; none for address writes; writes during BUSY land | AM 17/83; OPNA 0 for SSG/ADPCM; ymfm 192 | C3, U1 | | timer A | 144 x (1024 - NA) | OPNA 72 x; ymfm 144 x | C1 | | timer B | 2304 x (256 - NB) | OPNA 1152 x; ymfm 2304 x | C1 | | $1C flag control | ignored in part I; part II resets and masks | AM, ymfm, SNK's driver: part I | C2, decision 2 | | ADPCM-A rate | RMPX every 72 clocks; a sample per channel every 432 | 18.5 kHz | | | ADPCM-A decoder | floor(16 x 1.1^n); (2L+1) ss / 8; +2 +5 +7 +9; 12-bit wrap | ymfm agrees; Dialogic +2 +4 +6 +8 | C4 | | ADPCM-A level | ymfm's mantissa-and-shift law, 13 settings | AM 0.75 dB steps | | | ADPCM-A reset pan | silent unless $08 written | AM "00"; ymfm $DF | C5 | | ADPCM-A end | inclusive; low 20 bits compared | ymfm agrees | | | ADPCM-A re-key with flag set | plays | silent: HYPOTHESIS (was the wiki's) | C6 | | ADPCM-B rate | delta-N / 65536 x 55.5 kHz | OPNA agrees; ajworld "/256" | C7 | | ADPCM-B scaling | multiples of 4; alternating streams give 0 | ymfm (x level) >> 9 | C8, U2 | | ADPCM-B end | inclusive, ~512 nibbles for one block | | | Checks of permissive tables against documents (`python3 -I validation/check_tables.py`): detune 96 of 96 equal the OPNA manual's Table 2-6; log-sine and exponent 256 of 256 equal their closed forms; ADPCM-A steps equal floor(16 x 1.1^n), Dialogic's list and ymfm's. `python3 -I validation/fit_adpcma.py`: ymfm's increments with a single truncation match 10 of 10 constant-byte streams; the other three candidates 6 of 10. ## Not yet measured (the probe's limits) The probe uses only the pin names it carried over (`input.a0 a1 data cs wr rd clk test ym2610b rad pad ic`; `o_data o_s o_sh1 o_sh2 o_opo o_analog o_irq_pull o_rmpx`). The ADPCM-B bus (PMPX, /POE), /ROE and the address pins are therefore not observed (U4), and the ADPCM ROMs can only be constant bytes, not a real sample ROM. Rung 4 needs a full ROM-serving driver; that needs the header's pin list, which waits on the owner's word ([siblings.md](siblings.md), step 1). ## MAME [mame-oracle.md](mame-oracle.md): the tap recipe, the `nam1975` stream (9,652 accesses, SHA-1 `e01e1054...`), and its use as replay input for the rungs.