# The system ROM: Executive, Mine Storm, revisions, rights Source tags as in [start-here.md](start-here.md). **[pj]** Peer Johannsen's Vectrex Academy Lab pages (`bios_versions`, `wait_recal`; tier 3: code analysis plus experiments on his consoles). ## One 8K ROM, two programs IC201, a 2363 mask ROM at `$E000-$FFFF` [sch]: **Mine Storm** at `$E000-$EFFF`, the **Executive** (GCE's name; also "BIOS") at `$F000-$FFFF`, vectors at `$FFF0` ([memory-map.md](memory-map.md)). The No-Intro "Mine Storm (World)" cartridge image is byte-identical to `$E000-$EFFF` of the B796 ROM (checked 2026-11-11). ## Three factory revisions Identified by the 16-bit **XOR of big-endian words** over the 8K, which is what the factory Test Cartridge displays: the Service Manual's procedure says "the checksum will appear and read: (B796) must appear" [sm, p. 18]. Computed here for both images we have (2026-11-12): `exec_rom.bin` XOR = `B796`, `exec_rom_intl_284001-1.bin` XOR = `7931`. | Checksum | Name [pj] | Contents [pj] | SHA-1 | Have it | | --- | --- | --- | --- | --- | | `B796` | rev A, GCE | the base version | `65d07426b520ddd3115d40f255511e0fd2e20ae7` (CRC `ba13fb57`) | **yes**: MAME `vectrex.zip` `exec_rom.bin` (`-bios bios0`), Batocera `vectrex.zip`, No-Intro `[BIOS] GCE Vectrex (World)`, libretro-vecx `bios/system.bin`, embedded in vecx and VecXGL | | `7931` | rev B, Milton Bradley | rev A + `Draw_Grid_VL` variant + "abort intro on button press" + the MB patches including a bug-fixed Mine Storm (no `Joy_Digital` patch) | `77a220d5d98846b606dff608f7b5d00183ec3bab` (CRC `6d2bd167`) | **yes**: MAME `exec_rom_intl_284001-1.bin` (`-bios bios1`), Batocera | | `7ADB` | rev C, Milton Bradley | rev B + `Joy_Digital` patch + a `Print_Str_d` height change + pad bytes | - | **no**. Vide's repository has `cartridges/_7adb.bin` (not fetched: its rights are those of the ROM) | 367 bytes differ between B796 and 7931. [pj] also notes that the `Print_Str` change in rev C "causes a slight incompatibility", and that neither published source listing is a shipped ROM (John Hall's "RUM" is an intermediate; Joe Britt's "rev C source" has a fourth, unshipped patch). Hacked ROMs, not factory: libretro-vecx ships `bios/fast.bin` (SHA-1 `e0900be6d6858b985fd7f0999d864b2fceaf01a1`) and `bios/skip.bin` (`6c891bd74acb201d54071b310bd6df6617cdf205`), and MAME has commented-out "us-fastboot hack" / "intl-fastboot hack" entries. Not analysed; out of scope except as images a user might bring. **Default: B796** (the one the disassembly, the Service Manual's test and every emulator use). 7931 is the second supported row; 7ADB is accepted if supplied. ## The disassembly we work from Bruce Tomlin's annotated disassembly of B796 (with Fred Taft and Malban), as Graham Toal's AS09 listing `bios.lst` with a cycle count per instruction: pinned SHA-256 in `scripts/pinned_files.json` ("disassembly by Bruce Tomlin based in part on ..."; cite, never copy). Christopher Salomon's tutorial (1998, pinned pages) gives the RAM variable names in appendix B. ## What the Executive does to the hardware Every routine below is quoted from `bios.lst` [bt] with its address; the VIA consequences are in [via.md](via.md) and [analog.md](analog.md). | Routine | Address | Hardware it relies on | | --- | --- | --- | | reset | `$F000` | `LDS #$CBEA`, `Init_OS`, cold/warm test on `$CBFE` = `$7321` | | `Init_VIA` | `$F14C` | `DDRB $9F`, `DDRA $FF`, port B `$01` and port A `$00`, `ACR $98`, T1 low latch `$7F` (the scale), then `Reset0Ref` (PCR `$CC`). **`IER` is never written** by the Executive (no write to register E in `bios.lst`, none in 14 s of MAME logs): interrupts stay off because the VIA's /RES clears `IER` | | `Wait_Recal` | `$F192` | polls IFR bit 5 (T2) in a `BITA`/`BEQ` loop, reloads T2 with `Vec_Rfrsh` (`$7530` = 30,000 cycles: 50 Hz), then `Recalibrate`. 301,453 of the first 851,253 instructions of the MAME boot are this loop [ran] | | `Recalibrate` | `$F2E6` | two extreme moves (`$7F7F`, then `-128,128`) at scale 255, then `Reset0Ref`: [pj] argues it exists to keep the monitor's deflection protection from cutting in, not to recalibrate anything | | `Reset0Ref` | `$F354` | ZERO on via PCR (CA2 low), and the zero reference through mux channel 1 | | `Moveto_d` | `$F312` | Y to port A, mux on (channel 0), PCR `$CE`, `CLR