# Sound ## M72: Z80 + YM2151 + (on some sets) an 8-bit DAC **Parts (OBSERVED in MAME; DOC on the M84).** A Z80 at 3.579545 MHz, a YM2151 at 3.579545 MHz, on most sets an "8-Bit R-2R DAC" and an `m72_audio` device. R-Type has no DAC and no sample ROM. M84SCH sheet 7 shows the M84 sound section: a 3.579 MHz crystal X1, a Z80A (NEC D780C-1), a 27512 sound ROM, an LS374 latch fed from the main CPU's data bus with a SOUND strobe, a YM2151 with its YM3014 serial DAC, and op-amp filtering. **The sound program.** On R-Type (`m72` row) the Z80's whole 64 KB program space is RAM and the V30 sees it through E0000-EFFFF; there is no sound ROM in the set (`-listxml` regions: maincpu, sprites, tiles0, tiles1, proms, plds). So the V30 writes the Z80's program before releasing it (U5: the release mechanism, presumably the "sound reset" bit of I/O 02h named in i8086-python's timing.md, HYPOTHESIS). On the M84 the Z80 has its own ROM. **Interrupts.** MAME wires the Z80's interrupt through an "RST Interrupt Buffer (negative modification)" device (`-listdevices`), i.e. the data bus during interrupt acknowledge carries an RST opcode built from two active-low request lines (the YM2151's /IRQ and the sound latch), which the Z80 executes in interrupt mode 0. That needs z80-python's IM 0 with a host-supplied opcode (the z80-rust note "IM 0 non-RST limit" in the family records says RST is the supported case, which is exactly this one). Exact wiring: U12 (M84SCH sheet 7 shows the gates; read it at milestone 4). **Samples.** The DAC sets have a `samples` region (64-128 KB: `nspirit`, `imgfight`, `cosmccop`) and Z80 I/O at 80h-84h. Who steps through the samples (the Z80 writing every sample, timed by NMI; or a counter on the board) is U13. **Cores.** z80-python (pin its main, `1302260`); ym2151-python (Phase 0 restarted 2026-11-19, no core yet: this board is its third named consumer after cps1-python and system16-python); the DAC is a few lines in the board. ## M92 / M107: V35S + YM2151 + Irem GA20 **Parts.** A V35 Software Guard ("V35S", M92DOC) on a 14.31818 MHz oscillator (7.16 MHz CPU clock, VDB91 V35), a YM2151 at 3.579545 MHz, an Irem GA20 at 3.579545 MHz (MAME), a 1 MB-class sample ROM ("Sample ROM", 27C080 in M92DOC `audio_cpu`; MAME's `irem` region: 128 KB on Gunforce, 512 KB on In the Hunt), CXK5863 SRAMs. **Map (MAME).** V35 ROM 00000-1FFFF, RAM A0000-A3FFF, GA20 A8000-A803F, YM2151 A8040-A8043, latch from the V33 A8044, reply latch A8046; V33 reads the reply at I/O 08h. **The GA20.** An Irem custom PCM chip with no data sheet found. What is known with evidence: | Fact | Evidence | | --- | --- | | clocked at 3.579545 MHz | MAME's device (OBSERVED) | | 4 channels, 8-bit samples from the sample ROM, per-channel volume and pitch, no panning | Furnace's GA20 page (prose, GPL-2.0-or-later project; set aside as too thin to pin) and MAME's register window of 40h bytes (= 4 channels x 8 registers x 2 bytes, HYPOTHESIS) | | stereo or mono | unknown: U14 | The ladder for the GA20 has no tier 1-3 judge. The detectors are MAME (tier 5, closed box: register writes logged with a `wpset` on A8000-A803F, audio captured with `-wavwrite`) and the MiSTer M92 core (tier 4, GPL-2.0, closed box: would be built in emu-tools-gpl). Audio captures from real Irem boards have been made in the MiSTer community (credited in the MiSTer M72 core's README, read only for its author-respect check, sources.md); asking for M92 captures is an outside contact, Aubrey's call (open decision 8). Aubrey's rule "sound less exact than visuals" applies. **Cores.** Among MAME's Irem sets only m92.cpp and m107.cpp use `iremga20` (`-listxml` device references), and no other family board needs it: it stays in the board (the chip rule).