# The boards and their rows Irem's M-numbered arcade systems that this repository covers, how MAME 0.285 groups them, and the proposed machine rows. Every clock, screen figure and chip list below is from the MAME binary's `-listxml` / `-listdevices` output (OBSERVED, closed box; tier 5) unless another source is named; MAME's source is never opened ([sources.md](sources.md)). ## The families | Family | MAME source | Parents / sets | Years | Main CPU | Sound | Protection | Screen (MAME) | | --- | --- | --- | --- | --- | --- | --- | --- | | **M72** (with M81, M82, M84, M85 boards in the same driver) | `irem/m72.cpp` | 14 / 51 | 1987-1991 | NEC V30 @ 8 MHz (46 sets); NEC V35 @ 16 MHz input (5 sets: Cosmic Cop, Gallop, Lightning Swords/Kengo) | Z80 @ 3.579545 MHz, YM2151 @ 3.579545 MHz, 8-bit R-2R DAC (not on R-Type) | i8751 MCU on 15 sets (Battle Chopper, Image Fight, Legend of Hero Tonma, Ninja Spirit, and M72 conversions of later games), 13 dumped, 2 not dumped (MAME simulates them); one bootleg with an 80C31; the V35 main CPU of Kengo / Lightning Swords runs translated code (3 of the 5 V35 sets) | 384 x 256 of 512 x 284, 8 MHz pixel clock, 55.017606 Hz | | **M90** (M97, M99) | `irem/m90.cpp` | 7 / 19 | 1991-1993 | NEC V35 @ 16 MHz (14 sets, 13 of them translated, see below); bootlegs V30 @ 8 MHz | Z80, YM2151, DAC | the V35 Software Guard | not surveyed in detail | | **M92** | `irem/m92.cpp` | 12 / 42 | 1991-1994 | NEC V33 @ 9 MHz | NEC V35 @ 14.31818 MHz input, YM2151 @ 3.579545 MHz, Irem GA20 @ 3.579545 MHz | the sound V35 runs translated code on all 40 sets that have one; two bootlegs have no V35 | 320 x 240 of 424 x 262, 6.666666 MHz pixel clock, 60.012477 Hz | | **M107** | `irem/m107.cpp` | 3 / 6 | 1993-1995 | NEC V33 @ 14 MHz (Air Assault, Kick for the Goal, World PK Soccer) or 10 MHz (Dream Soccer '94) | as M92 | as M92 (all 6 sets translated) | not surveyed in detail | | M62 (out of scope) | `irem/m62.cpp` | 12 / 25 | 1984-1986 | Z80 @ 3.072 or 4 MHz | MC6803 + 2 x AY-3-8910 + 2 x MSM5205 ("irem_audio") | none | 8-bit generation (Kung-Fu Master, Lode Runner) | Counts: `scripts/census.py` ([census.md](census.md)); the translated-V35 counts: `scripts/reset_bytes.py` ([protection.md](protection.md)). The board names inside m72.cpp (M72, M81, M82, M84, M85) are not exposed by `-listxml`; the set names carry them where MAME distinguishes conversions (`airduelm72`, `dbreedm72`, `dkgensanm82`, `rtypem82b`). Which parent runs on which board is taken from MAME's descriptions and is HYPOTHESIS where only a set name suggests it; the M84 is documented by Nanao's drawings (M84SCH: sheets titled M84-A-A and M84-B-A). ## Recommendation: one repository, M92 as a row Proposed: **`irem-python`** holds every row. Why: - The M72 and M92 share their whole architecture: a NEC x86 main CPU at 8-9 MHz, a µPD71059 interrupt controller on I/O ports 40h-43h on both (MAME maps, both boards; the M84 drawing shows a D71059C, M84SCH sheet 3), a sound CPU behind a sound latch, a YM2151, input ports at I/O 00h-07h in the same order, tile layers in a video RAM window at D0000h, palettes and sprite RAM in the C0000h-FFFFFh region, and Nanao / Irem custom chips. - The M90 and M107 are already MAME-grouped with them and differ by rows: the M90 is an M72-class board with a V35 main CPU, the M107 is an M92 with one more tile layer and more sprites (per the MiSTer M107 core's README, OBSERVED; to confirm). - The NEC CPU core, the Software Guard translation, the YM2151 wiring and the µPD71059 would otherwise be wired twice. The cost is one package with two video systems (M72's Nanao KNA chips, M92's GA21/GA22 custom chips) and two sound systems. That is the same shape as `system16-python` (16A, 16B, 18 as rows). A sibling repository (`irem-m92-python`) would only pay if the M92 grew a Rust tier the M72 did not need; nothing suggests it. Open decision 2. ### Proposed machine rows | Row | Boards | First milestone | Example sets (all present in `$MAME_ROMPATH`) | | --- | --- | --- | --- | | `m72` | M72 with Z80 sound RAM loaded by the V30, no DAC (R-Type) | **first** | `rtype`, `rtypej`, `rtypeu` | | `m72-dac` | M72 with the sample DAC | second | `xmultipl`, `dbreed`, `airduel` | | `m72-mcu` | M72 with the i8751 and the dual-port RAM at B0000h | after mcs51-python | `nspirit`, `imgfight`, `bchopper`, `loht` | | `m84` (M82, M85 near it) | Z80 with its own ROM (0000h-EFFFh) and RAM (F000h-FFFFh); video RAM moved | after `m72` | `rtype2`, `hharry`, `majtitle`, `poundfor` | | `m72-v35` | V35 main CPU on M72-class video (video RAM at 80000h) | after the V35 variant | `cosmccop`, `gallop`, `ltswords` | | `m92` | V33 + V35S + GA20 | after the V33 and V35 variants | `gunforce`, `inthunt`, `rtypeleo`, `hook`, `uccops` | | `m107` | M92 with the extra layer | last | `airass`, `dsoccr94` | | `m90` | V35S main, Z80 sound | optional | `dynablst`, `bbmanw` | M62 is a different, earlier machine (Z80 main, MC6803 sound with AY-3-8910s and MSM5205s): recommended as its own repository when wanted (open decision 7), reusing z80-python, m6800-python (its MC6803 row) and ay8910-python. ## Clocks, by evidence | Clock | Value | Evidence | | --- | --- | --- | | M72 master | 32 MHz, V30 = /4 = 8 MHz, pixel clock = /4 = 8 MHz | i8086-python `docs/timing.md` (restated from MAME `m72.cpp`, BSD-3-Clause, by an earlier agent); MAME `-listxml`: V30 8.000 MHz, screen 8 MHz, 512 x 284, 55.017606 Hz (OBSERVED); MAME trace: 145,392-145,405 V30 clocks per frame (OBSERVED, = 512 x 284 = 145,408) | | M72 sound | Z80 and YM2151 at 3.579545 MHz | MAME (OBSERVED); M84SCH sheet 7: a 3.579 MHz crystal X1 drives the Z80A (D780C-1) clock (DOC, M84 only) | | **M84 main** | **20.0 MHz oscillator X2 into a µPD71011 clock generator (EXFS input) through jumper J8 ("SN" / "10M"), i.e. 10 MHz CLK if J8 selects X2** | M84SCH sheet 3 (DOC); VDB91 µPD71011: CLK is half the EXFS frequency (DOC). MAME runs every m72.cpp V30 at 8 MHz: **C1** | | M92 video | 26.6666 MHz oscillator, pixel clock 6.6666 MHz (/4) | M92DOC `clock_gen.kicad_sch` (board capture, tier 3); MAME screen 6.666666 MHz, 424 x 262, 60.012477 Hz (OBSERVED) | | M92 main | V33 @ 9 MHz | MAME only (OBSERVED); not found in the M92 board capture's sheets fetched here: **U3** | | M92 sound | V35S fed by a 14.31818 MHz oscillator; the V35 runs at half its oscillator (VDB91 V35: "System clock speeds to 8 MHz (16-MHz crystal)"), so 7.16 MHz | M92DOC `audio_cpu.kicad_sch` (part value "V35S", oscillator "14.31818Mhz"); MAME V35 @ 14.318181 MHz input | | M107 main | V33 @ 14 MHz or 10 MHz | MAME only |