# Sound Every set but Cue Brick and two bootlegs has a **Z80** sound CPU (OBSERVED, `-listxml`). Clocks (OBSERVED, MAME's clocks and the trace's cycle counts): **3.58 MHz** on tmnt, punkshot, simpsons, aliens, lgtnfght, blswhstl, glfgreat, thndrx2; **8 MHz** on tmnt2, ssriders, qgakumon, prmrsocr, xmen. | Chip | Rows | Clock (MAME) | Z80 window (OBSERVED, maps) | Data ROM (OBSERVED) | | --- | --- | --- | --- | --- | | YM2151 (+ YM3012 DAC, HYPOTHESIS) | all but glfgreat, prmrsocr | 3.579545 MHz; **4 MHz on xmen** | tmnt `C000`, punkshot/ssriders/simpsons `F800`, xmen `E800` (mirror `400`), aliens `A000` | - | | K007232 (2-voice PCM) | tmnt, mia, aliens | 3.58 MHz | tmnt `B000-B00D`, aliens `E000-E00D` (14 registers) | tmnt 128 KB, aliens 256 KB | | uPD7759 (ADPCM speech) | tmnt only | 640 kHz | tmnt `9000`, `D000`, `E000`, `F000` | `upd` region 128 KB | | title-tune "samples" | tmnt only | - | - | `title` region 512 KB: raw sample data played through a DAC; MAME uses its `samples` device for it (OBSERVED: device present). How the real board plays it is U19 | | K053260 (4-voice PCM/ADPCM, with 4 main/sound ports) | punkshot, tmnt2 rows, simpsons | 3.58 MHz | `FC00-FC2F` (punkshot, simpsons), `FA00-FA2F` (ssriders): 48 registers | punkshot 512 KB, ssriders 1 MB, simpsons 1.25 MB | | K054539 (8-channel PCM/ADPCM, with reverb RAM) | xmen, prmrsocr | 18.432 MHz | xmen `E000-E22F` | xmen 2 MB | | K054321 (main/sound latches and volume) | xmen, prmrsocr | - | xmen `F000-F003`; main side `108040-108055` | - | ## The channels between main and sound - **tmnt, aliens**: an 8-bit latch (`generic_latch_8` in MAME, OBSERVED) and a sound IRQ from a main-CPU output bit (HYPOTHESIS: the tmnt map's write at `0A0000`). - **K053260 rows**: the K053260's own four 8-bit ports, two each way (HYPOTHESIS from its common description; the maps agree: two main-side bytes at `0A0040-0A0043` on punkshot, `5C0600-5C0603` on ssriders), plus an IRQ write (`5C0604` on ssriders). - **xmen, prmrsocr**: the K054321. These are the channels of the sound domain ([domains-and-speed.md](domains-and-speed.md)). ## The chip rule | Chip | Family users today | MAME Konami users | Proposal | | --- | --- | --- | --- | | Z80 | many | 62 drivers | **z80-python** (pin) | | YM2151 | ym2151-python (Phase 0; for cps1, namcos1/2, system16) | 29 drivers | **ym2151-python** (pin); needs no variant; xmen's 4 MHz clock is a parameter | | K007232 | none yet | 16 drivers (Nemesis/Twin 16 era to TMNT) | in-board first; **extract as `k007232-python` when a second family board needs it** (decision 4) | | K053260 | none yet | 7 drivers | in-board first; extract with the K007232 rule | | K054539 | none yet | 18 drivers (the GX era, djmain, Firebeat-adjacent) | in-board first; the obvious extraction once a GX board starts | | K054321 | none | 9 drivers | stays with the K054539 (a latch, no reason to stand alone) | | uPD7759 | none yet; MAME: Sega System 16 (`system16-python`'s Phase 0 lists it), Konami 7 drivers | | **its own core `upd7759-python`** once system16-python reaches sound: two family boards. Until then in-board (decision 4) | ## Oracles | Chip | Tier 1 | Tier 2 | Tier 3 | Tier 5 | | --- | --- | --- | --- | --- | | YM2151 | per ym2151-python | Yamaha documents (ym2151-python) | per ym2151-python | Nuked-OPM closed box (emu-tools-gpl) | | uPD7759 | none | **NEC product description 12/85** (pinned) | - | MAME (BSD-3-Clause line) | | K007232, K053260, K054539 | furrtek die traces: **set aside** | none | vgmrips.net wiki: set aside (site's wishes) | MAME (BSD-3-Clause lines) | Sound is held to "good enough" (Aubrey, 2026-11-13): the PCM chips are FITTED to MAME's output where no other source exists, and said so. X-Men's sound is "imperfect" in MAME (OBSERVED, `-listxml` feature): MAME is weak there. ## Unknowns U19 TMNT's title tune path (what plays the `title` ROM on the board: a DAC behind a counter, HYPOTHESIS); U20 K053260 ADPCM table and pitch counter; U21 K054539 reverb and its RAM; U22 K007232 register layout and its volume/pan wiring per board.