# Start here: the Taito / Midway 8080 bitmap board Space Invaders (Taito, 1978; Midway's licensed US version the same year) runs on a small board: an 8080A, 8 KB of ROM, 8 KB of dynamic RAM of which 7 KB is a one-bit bitmap, a hardware shift register that makes up for the 8080's lack of a barrel shift, three input ports, and a sound circuit built from discrete parts and one TI SN76477. There is no sprite hardware, no tile hardware and no palette: colour comes from strips of cellophane on the cabinet glass. Everything this document says carries a source tag (see [sources.md](sources.md)); tags follow the methodology (DOC, OBSERVED, HYPOTHESIS). ## Boards and revisions | Board | What | Source | | --- | --- | --- | | Taito S.V. CPU P.C. board **SVN00002A** (1979-02 revision) | TMS8080A CPU, 16 x TMS4060NL 4K-bit dynamic RAM, 75365 MOS driver, 74S241 bus driver, **19.968 MHz crystal**, programmable ROMs SV01..SV10 | TSCH p. 3 parts list (DOC) | | Taito S.V. CPU P.C. board **SVN00005** (1978-10) | the same with mask ROMs TV01..TV04 (the "TV version") | TSCH p. 5 parts list (DOC); MSI p. 3 names SVN00002 and SVN00004 as the two CPU boards a cabinet may hold | | Taito S.V. game (and sound) P.C. board **SVN00003** | inputs, sound: SN76477 x1, NE556A, LM3900 x7, LM377 amplifier, CD4006A + CD4030 (a shift register and XOR gates: a noise source), 74LS153/161/175 and others | TSCH pp. 1 and 4 parts lists (DOC) | | Midway (US) boards | the same design licensed; MAME puts Midway's `invaders` in `mw8080bw.cpp` beside Dave Nutting Associates' earlier 8080 games | `mame -listsource` (OBSERVED) | The CPU is a **Texas Instruments TMS8080A** on the Taito list, a second source of the 8080A. i8080-python models Intel's 8080A and notes that AMD's second sources differ (AC after `ANA`); whether TI's part differs anywhere is unknown (U2 in the brief). ## Clocks | Signal | Value | Source | | --- | --- | --- | | Crystal | 19.968 MHz | TSCH p. 3 (DOC) | | CPU | 1.9968 MHz (crystal / 10) | MAME device list "Intel 8080 @ 1.99 MHz" and i8080-python's MAME runs (230,313 instructions, 2,012,152 states in 1 emulated second) (OBSERVED); the divider itself is to be read from the schematic (U1) | | Pixel clock | 4.992 MHz (crystal / 4) | MAME `-listxml`: pixclock 4992000 (OBSERVED) | | Line | 320 pixel clocks; 260 visible | MAME `-listxml`: htotal 320, hbstart 260 (OBSERVED) | | Frame | 262 lines; 224 visible; 59.541985 Hz | MAME `-listxml`: vtotal 262, vbstart 224 (OBSERVED) | ## Memory and ports | Range | What | Source | | --- | --- | --- | | 0000-1FFF | ROM, 8 KB (four 2 KB parts in `invaders`: h, g, f, e) | CA; census (OBSERVED) | | 2000-23FF | work RAM, 1 KB | CA | | 2400-3FFF | video RAM, 7 KB, one bit per pixel | CA | | 4000- | mirror of the RAM | CA (a MAME comment, per CA's own note) | The 8 KB of RAM (2000-3FFF) matches the 16 x 4K-bit dynamic RAMs on SVN00002A (DOC). Inputs and outputs are on the 8080's I/O space: | Port | Read | Write | | --- | --- | --- | | 0 | inputs (unused by the program) | | | 1 | coin, starts, player 1 | | | 2 | DIP switches, tilt, player 2 | shift amount (bits 0-2) | | 3 | shift register result | sound bits (UFO, shot, base hit, invader hit, extra base, amplifier enable) | | 4 | | shift data | | 5 | | sound bits (four fleet steps, UFO hit; bit 5 flips the screen on cocktail sets) | | 6 | | watchdog | (CA; bit tables there. The MAME trace shows the program writing ports 3, 5 and 6 in its first second: [mame-oracle.md](mame-oracle.md).) ## Interrupts Two maskable interrupts a frame, each an `RST` placed on the data bus: `RST 1` (0xCF) when the beam reaches line 96 and `RST 2` (0xD7) at line 224 (the start of vertical blank). The vector is formed from the 64V line, and a D flip-flop holds INT until the CPU's acknowledge clears it (CA, quoting MAME's driver comments: tier 5 lineage). The MAME trace agrees: over 30 frames, 21 entries at 0x0008 on line 96 and 20 at 0x0010 on line 224, plus one at 0x0008 on line 63, the first acceptance after the program's `EI` (the request had been held since line 96: OBSERVED, consistent with a held flip-flop). i8080-python already supports a one-byte instruction injected on acknowledge, which is exactly this. ## Reading on [video.md](video.md) (bitmap, overlay, colour siblings), [shifter.md](shifter.md), [sound.md](sound.md), [siblings.md](siblings.md), [cpu-cores.md](cpu-cores.md), then the [handoff brief](handoff-brief.md).