# Defender: a machine row, not a sibling **Recommendation: Defender is a machine row in `williams-python` with its own memory map module, not a separate repository** (open decision 2). ## What Defender shares with the later boards Everything but the address decoding (DOC: SR-DIFF "very similar ... many significant differences" are all addressing; DEF-T describes the same circuits as the later boards): - the MC6809E at 1 MHz from the same 12 MHz clock chain (DEF-T "Clock generator"); - the same video address generator (14 bits, reload to 16,128, 16,640 counts a frame), the same three-bank DRAM, the same shift registers, colour RAM and blanking (DEF-T); - COUNT 240 and VA11 into the ROM-board PIA's CA1 and CB1, the coin door slam on CA2 (DEF-T "ROM board PIA/decoder"); - the watchdog counting 8 vertical scans, about 133 ms (DEF-T "Watchdog"); - battery-backed 4-bit CMOS with a coin-door write protect (DEF-T "CMOS RAM"); - the same sound board: Defender's `video_sound_rom_1.ic12` runs on the same 6808 board as Robotron's `video_sound_rom_3` (OBSERVED: identical MAME sound CPU and DAC rows; SR-HW); - the two decoder PROMs (`decoder.2`, `decoder.3` in the Defender set). ## What differs | | Defender | Later boards | | --- | --- | --- | | RAM | always 0000-BFFF | 0000-8FFF shared with banked ROM for reads; writes always RAM | | I/O | in C000-CFFF on page 0 only | fixed at C000-CFFF | | ROM | C000-CFFF pages 1-9 by a latch written at D000, D000-FFFF fixed | banks 0-8 at 0000-8FFF by C900 bit 0, D000-FFFF fixed | | Watchdog | C3FF with page 0 (DEF-T); the program writes 38h to C3FC (OBSERVED), so the decode is partial | CBFF, 39h | | CMOS | 256 x 4 at C400-C7FF, upper half protected | 1K x 4 at CC00-CFFF, first quarter protected (SR-MAP) | | PIAs | CC00-CC07 (OBSERVED) | C804-C807, C80C-C80F | | Blitter | none | SC1 (Robotron on), SC2 (Splat, Blaster) | | Early/later boards | two board generations with separate theory books (16P-3001-300 and -301) | | All of these are one map and one bank latch: a `DefenderMap` beside the `WilliamsMap`, selected by the machine row. A sibling repository would duplicate the CPU wiring, video, PIAs, CMOS, watchdog and the whole sound board, which the family's rule forbids copying and which would have to be pinned back anyway. ## The other Defender-map games MAME runs Mayday (3 sets + the Battle Zone bootleg), Colony 7 (2 sets) and Jin on the Defender map (OBSERVED: no blitter device, the same driver file; [census.md](census.md)). They are rows of the Defender map. The bootlegs with an MC6802 sound CPU (defenderom, galwars2) and Next Century's 3.12 MHz sound clock are rows with a different sound CPU part or crystal, which the sound board takes as parameters. ## Early versus later Defender boards DEF-TE (early) and DEF-T (later) are separate books. The differences were not read through in Phase 0 (U12 in the brief); the first milestone targets the later boards' Defender (the red-label set's ROMs) and records any difference the early book names as a row option.