# YM2164 (OPP) Citation forms: [start-here.md](start-here.md). No Yamaha document for the YM2164 is in hand, and IKAOPM does not model it. Everything below is either a statement by a named source or a closed-box run of the referee in its YM2164 mode (`opm_ref ... ym2164`, OBSERVED, Nuked-OPM f209e6e). The referee's YM2164 mode is itself an emulator's opinion with no hardware chain we can cite; a disagreement with any document or recording found later goes to the document. ## Who uses it MAME 0.285 lists 11 machines with a YM2164 (9 parents, 8 driver files): Yamaha's SFG-05 module and the MSX machines that carry it, the Yamaha DX100 and FB-01, Korg's DS-8 and 707, and the IBM PC Music Feature Card; clocks 3,579,545 Hz and 4,000,000 Hz. (`reference/census/ym2151-machines.tsv`, from `scripts/mame_census.py`.) Their drivers are not yet checked for licence or wiring. ## What a source says | Statement | Source | | --- | --- | | "Almost 100% functionally identical to the YM2151, except it apparently has some mystery registers in the 00-07 range, and timer B's frequency is half that of the 2151" | ymfm 81aec25, ymfm_opm.h:309-311 (a comment, no evidence given; ymfm 81aec25 itself implements no difference: the variant is stored and not used, ymfm_opm.cpp:401-402) | ## What the closed box shows | Observation | Run | | --- | --- | | Timer B counts at half the YM2151 rate: NB 255 flags 593 cycles after LOAD and NB 254 2,017 (1,024 cycles per count, against 512) | `reference/referee-probe.txt` | | Timer A is the same (49, 81 and 785 cycles for NA 1023, 1022, 1000, as in YM2151 mode) | `reference/referee-probe.txt` | | The CT lines are swapped against YM2151 mode: register bit 6 drives the line opm.h calls CT2, bit 7 the one it calls CT1 | `reference/referee-probe.txt` | | Same streams, same output: one carrier with DT1 and decays; CON 4 with feedback 7; the noise slot; the LFO (triangle, LFRQ 0xFF, AMD and PMD 127, PMS 7, AMS 3): 192,000 cycles each, decoded output, SO, SH1, SH2 and /IRQ identical in both modes | `scripts/referee_survey.py` (`reference/referee-survey.txt`) | | Both timers running with flags on: output and pins identical, the status byte differs (timer B's flag timing) from cycle 8,161 | same | ## Unknown (U5) Everything else: the "mystery registers" at 0x00-0x07, any difference in the envelope, LFO, noise or frequency tables outside the streams above, the bus timing, BUSY, the test register, the pinout and the output format. Decision 4: the variant field exists from the start (`OPMVariant.YM2164`); its behaviour beyond the two observed differences waits until after rung 4 and a source with a hardware chain.