# Ms. Pac-Man's auxiliary board Ms. Pac-Man (1981, General Computer Corporation for Midway) is a Pac-Man board with a daughter board in the Z80's socket. ## What the documents say (MSS, Midway assembly drawing A084-91415-B617, 1981-12-29; DOC) Ms. Pac-Man aux P.C. board A080-91415-B617: | Ref | Part | | --- | --- | | U0-U3 | CG820, CG821, CG822, CG823: four 20-pin programmed logic parts (Midway part numbers 0066-014CX..0066-017CX) in 20-pin sockets | | U4 | Z-80A (the CPU moves onto the aux board) | | U5 | 2716 EPROM (2 KB) | | U6, U7 | 2532 EPROMs (4 KB each) | | J1 | 40-pin cable assembly to the main board's Z80 socket | So the auxiliary board sits between the Z80 and the main board: it sees every address the CPU puts out, can answer reads itself from its own 10 KB of EPROM, and the main board's ROMs (the four Pac-Man program ROMs, still fitted: the MAME set lists `pacman.6e`..`pacman.6j` plus `u5`, `u6`, `u7`) are reached through it. ## What is not documented - **The logic in CG820-CG823.** Their equations are in no document we hold, and the MAME romset has no dumps of them (census: `mspacman` lists 13 files: four Pac-Man program ROMs, u5/u6/u7, two graphics ROMs, and the four PROMs). The behaviour is known in the community as an overlay of patches selected by "trap" addresses that switch between the original ROMs and the auxiliary ROMs, with the auxiliary ROMs' address and data lines scrambled; MAME models it in `pacman/pacman_m.cpp` (smf, Mike Balfour, David Widel; `license:BSD-3-Clause`, read 2026-11-26) and LOM's source list names David Widel's site. Tonight's rule keeps MAME closed and we did not fetch Widel's pages; so for now the aux board's behaviour has **no source above tier 5** (U9). - The plan: model the aux board as a socket device between the Z80 and the main board bus (`Z80Socket` protocol: the board offers the CPU's bus; the aux board wraps it), derive its mapping from (a) the PAL equations if a dump or a documented reverse engineering with a usable licence turns up, else (b) MAME as a black box: log every address the Z80 fetches and the byte MAME returns, for the whole attract and a played game, and fit the mapping to that log (FITTED, recorded as such). ## Why it is a socket, not a machine row only The aux board replaces the CPU's view of memory, not a device in the map; the same shape serves the bootlegs that put Ms. Pac-Man on other boards and the later "multigame" kits (`mspacmnf`, `mschamp`, `superabc` in the census). It lives in this repository (it plugs only into this board) as `aux/mspacman.py`.