# Protection, EEPROM, inputs ## The ESC (type 2 boards) **DOC (sheet page 29, SUB PCB TYPE 2, "ESCCLK"):** the game's sub board carries the interface of a device called ESC, with a full 68020-style bus-master interface toward the main board: `BR`, `BG` (two-wire arbitration, as the MC68EC020 has), `ESCAS`, `ESCDS`, `ESCRW`, `ESCS/Z0-1` (transfer size), `DSACK0/1`, plus its own 16 MHz clock (`ESCCLK` from the 32 MHz oscillator, page 23), `ESCINT`, `ESCRES`, ports `P0`, `P1`, and lines `ESCEP`, `ESCSET`, `ESCINT0`, `WRITERID`, `RESETOUT`. On the main board an ESC port line `ESCP0` is gated with the 051550's reset into `CPURESET`/`CPUHALT` (page 23). The ESC chip itself is on a sheet the manual lacks. So the ESC is not a lookup table on a port: it is **a second bus master** that can stop the 68EC020, take its bus and read or write main memory. What it computes is unknown. **OBSERVED (MAME 0.285, Salamander 2, a write watchpoint on `CC0000-CC0003` for 25 s):** 1,224 writes, all from one instruction at `217D08`. From frame 1061 on (the attract mode) the game writes, **once per frame at beam line 16**, a work-RAM address followed by two zeros. The addresses step through eight blocks 44 (`0x2C`) bytes apart: `C00224`, `C00250`, ... `C00358`. Before that, at boot, it wrote `C1F7C0` and `C00070`. Reading: the game hands the ESC a command block in work RAM each vertical blank (HYPOTHESIS). MAME models the ESC's effect in its `esc_w` handler (a closed box: what it does there was not read). U5 (identity: a microcontroller with a dumped program, or a gate array?), U6 (the command format and what the ESC writes back, and when: the bus-master cycles take main-bus time, which an exact board must charge to the 68EC020). **Board approach:** a socket `EscDevice` on the main bus with the bus-request lines, so a functional model (FITTED to MAME's observable results: work RAM after each command) can be replaced by a real program if one is ever dumped. The functional model is a **concession-free specification only if** its outputs equal the hardware's; until then it is tagged FITTED. ## Type 4 protection Run and Gun 2, Rushing Heroes and Versus Net Soccer map `type4_prot_w` at `CC0000-CC0007` instead of `esc_w` (OBSERVED, map). No schematic covers it. U19. ## Sexy Parodius MAME flags "protection imperfect" (OBSERVED, `-listxml`) although its map equals Salamander 2's: the ESC model is incomplete for it. The Sexy Parodius row is therefore a late row. ## EEPROM (93C46, 16-bit organisation) MAME: `93c46_16` (OBSERVED), written through `eeprom_w` at `D56000`. Salamander 2's first instructions write `00`, `80`, `00` to `D56000` (OBSERVED, boot trace): a pulse on bit 7 of that latch, purpose U20. Factory images: [census.md](census.md). The 93C46 itself is documented by its makers (tier 2); a data sheet was not pinned in Phase 0 (the family has pinned 93Cxx sheets elsewhere: reuse at build time). ## Inputs Ports `SYSTEM_DSW` (`D5A000`), `INPUTS` (`D5C000`), `SERVICE` (`D5E000`) (OBSERVED). Lethal Enforcers II adds two light guns (the CRTC's `GUNNHBK` latch is on the main board, DOC, page 23) and a `timer` device in MAME; Racin' Force and Open Golf read an **ADC0834** (National, 4-channel serial ADC) through `DDA000`/`DDC000` for wheel and pedal or trackball (OBSERVED). Racin' Force's LAN link is unemulated in MAME and out of scope.