# Start here: the Pac-Man board One Z80A at 3.072 MHz, 16 KB of program ROM, a 28 x 36 tile screen with eight 16 x 16 sprites, a 3-voice wavetable sound generator built from TTL and PROMs, and two Namco custom chips (the "V-RAM addresser" and the "Z80 sync bus controller") that Midway's manual also shows as plug-in TTL boards. Tags follow the methodology (DOC, OBSERVED, HYPOTHESIS); sources in [sources.md](sources.md). ## Parts (Midway game board A082-91375, PMM pp. 34-35; DOC) Z80 CPU; 18.4320 MHz crystal; Namco customs **NVC284** "V-RAM addresser" and **NVC285** "Z80 sync buss controller", each replaceable by a plug-in board (A082-91384-B000 and A082-91383-B000, schematics on PMM pp. 36-38); 2114 1K x 4 RAMs; 74S89 16 x 4 RAMs; 256 x 4 PROMs (IM5623 or MB7052) and 32 x 8 PROMs (7603 or MB7051); 2532 4K x 8 program EPROMs; 1K x 1 RAMs (several makes; their role is to be read from the schematic); CD4066 analog switches; an LM377 audio amplifier; and TTL including 74LS283 adders, 74LS259 addressable latches and 74LS194 shift registers. ## Clocks | Signal | Value | Source | | --- | --- | --- | | Crystal | 18.432 MHz | PMM p. 35 (DOC) | | Pixel clock | 6.144 MHz (crystal / 3) | MAME `-listxml pacman`: pixclock 6144000 (OBSERVED) | | CPU | 3.072 MHz (crystal / 6) | LOM (tier 3); MAME `Zilog Z80 @ 3.07 MHz` (OBSERVED) | | WSG sample rate | 96 kHz (CPU clock / 32) | LOM; MAME `Namco @ 96.00 kHz` (OBSERVED). MAME logs "internal freq = 192000" at start: its own resampling, not a board fact | | Line | 384 pixel clocks, 288 visible | MAME `-listxml`: htotal 384, hbstart 288 | | Frame | 264 lines, 224 visible; 60.606061 Hz | MAME `-listxml`: vtotal 264, vbstart 224 | The monitor is turned 90 degrees (MAME `rotate="90"`): the player sees 224 x 288. ## Memory map (LOM table 1; MAME trace confirms the writes it shows) | Range | Read | Write | | --- | --- | --- | | 0000-3FFF | program ROM (four 4 KB parts in `pacman`; eight 2 KB in `puckman`) | | | 4000-43FF | tile codes (video RAM) | same | | 4400-47FF | tile colours (palette numbers) | same | | 4800-4FEF | work RAM | same | | 4FF0-4FFF | sprite number and flips (8 pairs) | same | | 5000-503F | IN0 (joystick, coins, rack advance) | 5000-5007: the 74LS259 latch: interrupt enable, sound enable, aux, flip, two lamps, coin lockout, coin counter | | 5040-507F | IN1 (player 2, starts, test switch, cabinet) | 5040-505F: WSG registers ([wsg.md](wsg.md)); 5060-506F: sprite X/Y | | 5080-50BF | DIP switches | | | 50C0-50FF | | watchdog | | I/O port (any) | | the interrupt vector latch ([sync-bus.md](sync-bus.md)) | LOM's prose disagrees with its own table in two places (C1, C2 in the brief): it calls the program ROMs "four 1K chips" beside a 4 KB range each, and puts the sound enable at 50C0 in its sound section (the watchdog's range) against 5001 in its table. MAME's start-up trace only shows the program clearing 5000-5007 in order (mame-oracle.md), which does not decide it; the schematic's 74LS259 wiring does. ## Interrupts One maskable interrupt a frame, at the start of vertical blank, when 5000 bit 0 enables it. The program uses **IM 2**: it writes the low byte of a vector-table address to an I/O port (`OUT (0),A`), the board latches it, and the latch drives the data bus during the interrupt acknowledge (LOM; [sync-bus.md](sync-bus.md)). Observed in MAME: `OUT` of 0xFA with I = 0x3F, so the vector is read from 3FFA. ## Reading on [video.md](video.md), [wsg.md](wsg.md), [sync-bus.md](sync-bus.md), [mspacman-aux.md](mspacman-aux.md), [siblings.md](siblings.md), [galaxian-galaga.md](galaxian-galaga.md), [cpu-cores.md](cpu-cores.md), then the [handoff brief](handoff-brief.md).