# How Pac-Man relates to galemu and emu-galaga Both repositories exist in the family (READMEs read 2026-11-26): - **galemu** (`a1812fc`): "a readable, deterministic Python emulator for the original 1979 Namco Galaxian arcade board", on z80-python 0.3.0, with a pygame frontend and a circuit-structured approximation of Galaxian's discrete sound board. A playable board, not yet in the x-python shape (no Rust tiers; a pinned PyPI core). - **emu-galaga** (`8a67aec`): Galaga (Namco, 1981) for players in the browser: three z80-rust-fast cores and a board written in Rust from its `docs/`, compared with MAME frame by frame; it carries a Rust WSG written from MAME's BSD-3-Clause `namco.cpp`. A site, outside the x-python shape (no Python specification behind it). ## The three boards side by side | | Galaxian (1979) | Pac-Man (1980) | Galaga (1981) | | --- | --- | --- | --- | | Crystal, CPU | 18.432 MHz, one Z80 at 3.072 MHz (galemu `memory-map.md`) | 18.432 MHz, one Z80 at 3.072 MHz | 18.432 MHz, three Z80s at 3.072 MHz (emu-galaga) | | Raster | 6.144 MHz pixel clock, 384 x 264, 256 x 224 visible, 60.606 Hz (galemu `video-hardware.md`) | the same clock and totals, **288** x 224 visible | as Pac-Man: 288 x 224 visible (MAME `-listxml galaga`) | | Interrupt | NMI at vertical blank, enabled by a latch | **IM 2** maskable interrupt with a vector latch | vblank IRQ (level, cleared by a latch write) on the main CPU; NMIs from the 06XX and at lines 64/192 on the others (emu-galaga `cpu-and-timing.md`) | | Tiles | 32 x 28, scrolling columns | 28 x 36 fixed, odd address order | 36 x 28 fixed (emu-galaga `video-hardware.md`) | | Sprites | 8, plus bullets and a starfield | 8 | 64 (emu-galaga `video-hardware.md`), plus the 05XX starfield | | Sound | discrete (555 timers) | **WSG** (TTL + PROMs) | **WSG** (MAME's same `namco` device at 96 kHz) + the 54XX noise MCU | So Pac-Man sits between them: Galaxian's clocks and line timing, the 288-wide visible area and tile layout that Galaga keeps, and the WSG that Galaga reuses. What carries over: - **Nothing as code.** galemu pins an old z80-python and is not a specification; emu-galaga is Rust. The family rule: never copy between repositories. - **As detectors:** emu-galaga's WSG output (it correlates 0.969 with MAME's mix on Galaga by its own build record) can be run against this board's WSG on the same register stream once M4 exists; galemu's video notes are a cross-check for the shared raster timing. - **As a future shape:** if a `galaga-python` or `galaxian-python` specification is started, the WSG becomes a two-board chip and is extracted ([wsg.md](wsg.md), open decision 3); galemu could then be rebuilt in the x-python shape on the same core pins.