# Cartridges: what the port carries, the file formats, and the library Sources: **[gi80]** GI 1980 catalogue (tier 2); jzIntv's documents (tier 3, named per row); MAME 0.285 `src/devices/bus/intv/` and `hash/` (tier 5; the hash lists are CC0); **[hw26]** `openFPGA-Intellivision` `docs/CARTFORMATS.md`, `JLP_NOTES.md`, `HW_TESTS.md` (MIT). ## The port The cartridge connector carries the whole CPU bus with its phases, not a decoded address bus: DB0-DB15, the three bus-control lines (out to the cartridge and back in), SR1/INTRM, SR2/BUSRQ and BUSAK/SST looped through the cartridge, MSYNC, MCLK, CBLNK, INTR and RESET inputs, and AUDIO and VIDEO inputs (GI drawing 39-149, 1978: [bus.md](bus.md)). A Mattel ROM cartridge is one or more GI ROM chips with their own address latches and a programmable page compare (RO-3-9502/9504 family: "2K pages may start on 2K boundaries ... 4K pages must be on 4K boundaries" [gi80 5-13]). So a cartridge is a **bus device**: the board offers it every phase and the latched address, and a plain ROM cartridge answers DTB (and ADAR) in its ranges. The board's `Cartridge` therefore has two layers: a **map** (ranges, width, ROM/RAM/paged, from a file format or the hash table) and the **socket** (phase, value, the four loops), so that the Intellivoice and the ECS, which are pass-through boards, plug into the same socket ([addons.md](addons.md)). ## File formats | Format | Extension | Self-describing? | Specification | Notes | | --- | --- | --- | --- | --- | | Raw words | `.bin`, `.int`, `.itv` | **no**: 16-bit big-endian words, the map comes from a `.cfg` beside it or from a hash table | jzIntv `doc/programming/intellicart.txt`, `doc/utilities/as1600.txt` (the `.cfg` grammar: `[mapping]`, `[memattr]`, `[bankswitch]`, `[preload]`, `[vars]`) | 207 of the 209 No-Intro images | | Intellicart | `.rom` | yes: segments with load addresses, an access table, a fine-address table, tags | jzIntv `doc/rom_fmt/id_tag.txt`, `intellicart.txt`; decoded in `scripts/census.py` `rom_map` | recognised by its first bytes (`$A8`, then a byte and its complement), whatever the name: `Lock 'N' Chase (v1.1).int` and `Antarctic Tales .bin` are `.rom` files | | LUIGI | `.luigi` | yes | jzIntv `src/locutus` (not read) | LTO Flash's format; none in the library | | `.cfg` `[vars]` | | | as1600.txt | hardware requests: `ecs`, `voice`, `intv2`, `jlp`, `jlp_flash`, `lto_mapper`, `kc_compat`, `tv_compat` | [hw26]'s `docs/CARTFORMATS.md` (MIT) is a careful word-exact account of the CFG and `.rom` loaders as an FPGA built them, with the cases where it departs from jzIntv on purpose; read it before writing the loader. Its `data/cart_table.csv` is a generated CRC table (MIT) built from MAME's `hash/intv.xml` and `intvecs.xml` (CC0) plus 26 rows of its own evidence; this board should **generate its own table from the CC0 MAME lists and our census**, not copy theirs. ## Bank switching and extra hardware | Scheme | How | Source | | --- | --- | --- | | ECS-style paging | writing `$xA5y` to `$xFFF` selects page *y* of the 4K at `$x000` | jzIntv `doc/tech/ecs.html` | | Intellicart bank registers | writes to `$0040-$005F` move 2K banks | jzIntv `intellicart.txt` (partly read) | | On-cartridge RAM | 8-bit or 16-bit RAM in the cartridge map: MAME slot `intv_ram` (USCF Chess, Land Battle, Triple Challenge) | MAME `bus/intv/rom.cpp`, `slot.cpp` | | Game Factory (`intv_gfact`) | RAM-backed cartridge | MAME | | World Series Major League Baseball (`intv_wsmlb`) | paged ROM, needs the ECS | MAME | | JLP | 16-bit RAM `$8040-$9F7F`, multiply/divide `$9F80-$9F8F`, CRC `$9FFC`, random `$9FFE`, flash save commands `$8023-$802F` | [hw26] `docs/JLP_NOTES.md`; jzIntv's GPL source, read before the 2026-11-14 rule (HYPOTHESIS for what only it gave) | | CC3 / LTO Flash mappers | not read | | Writes to a ROM range do nothing on a Mattel cartridge; a flash cartridge may react ([hw26] HW_TESTS 11: three zero counts that only the program writing into its own cartridge words produced, on a PiRTO II). ## The library census (2026-11-11; hashing only, no emulator run) Run: `python3 -I scripts/census.py --rows > rows.txt` (summary on stderr). Results in `tests/detectors/census-rows-2026-11-11.txt` and `census-summary-2026-11-11.txt`. Since 2026-11-25 the census has no FreeIntv column (decision L4: it parsed FreeIntv's GPL source) and those two files have had its column and lines taken out; the FreeIntv counts in the table below are the 2026-11-11 record, not reproducible now (provenance.md). | Set | Archives | Images | Formats | Databases | | --- | --- | --- | --- | --- | | No-Intro `Mattel - Intellivision` | 207 | 209 (202 `.int`, 6 `.bin`, 1 `.rom`) | 207 raw words, 2 Intellicart | 167 match a MAME 0.285 software-list entry (by concatenated pieces), 160 MAME `intv.hsi`, 174 a FreeIntv fingerprint; **20 in no database** | | No-Intro `(Aftermarket)` | 46 | 81 | 41 Intellicart, 40 raw `.bin` **with no `.cfg`** | 37 in no database; 6 titles exist only as a raw `.bin` with no map anywhere: Buck Rogers, Fantasy Puzzle, Lode Runner, Maria, Onion (416,954 bytes: must be paged), Parsec | | `roms-retrobat/intellivision` | 136 | 136 | raw | **all duplicates** of No-Intro main images | - Sizes (No-Intro main): 1K-24K words; 4K (69), 8K (80), 12K (19), 16K (29), 24K (5). - Commonest maps: `$5000`+4K (55), `$5000`+8K (57), `$5000`+8K and `$9000`+8K (13), `$5000`+8K and `$D000`+4K (10); four at `$4800`+8K. - MAME slot types: 161 plain ROM (156 `intv`, 5 `intvecs`), 3 `intv_ram`, 1 the ECS BIOS, 1 `intv_gfact`, 1 `intv_wsmlb`. - The 20 in no database are mostly *Intellivision Lives!* variants, MTE-201 V4.1a and the Super NFL Football prototype: their maps are U10. - Test cartridges in the set: MTE 201 V1.0, V1.0a, V3.0, V3.0b, V3.3, V4.1a; the IMI Test Cartridge; four Demonstration cartridges. - Aftermarket Intellicart images: 3 with RAM pages at `$8000`, 14 with metadata tags, none flags bank switching in its attribute table. - **Where the databases disagree** (rows in the census file; settle each at milestone M7 by running the image): Hover Force, IMI Test, Land Battle and USCF Chess (RAM `$D000` + `$800` in MAME, `$D000-$D3FF` in FreeIntv: C5), Learning Fun I and II, MTE 201 V3.0, Magic Carousel, Triple Challenge, World Series Major League Baseball. ## BIOS files (all found; SHA-1) | File | Size | SHA-1 | Where | | --- | --- | --- | --- | | exec.bin (Executive ROM, 4,096 words, 16-bit big-endian) | 8,192 | `5a65b922b562cb1f57dab51b73151283f0e20c7a` | `$FRONTEND_BIOS/` (a frontend's BIOS folder), MAME `intv.zip`, No-Intro `[BIOS]` | | grom.bin (RO-3-9503-003) | 2,048 | `f9608bb4ad1cfe3640d02844c7ad8e0bcd974917` | the same three | | ecs.bin (3 x 4K words: `$2000`, `$7000`, `$E000`) | 24,576 | `b7ccb38b881d7f8426cd6f1f8a7aabbd31784fc5` | No-Intro `[BIOS] Entertainment Computer System`; equals MAME `intv_ecs.zip`'s `ecs_rom.20`, `.70`, `.e0` concatenated (checked) | | ivoice.bin (SP0256-012 internal ROM) | 2,048 | `618563e512ff5665183664f52270fa9606c9d289` | No-Intro `[BIOS] Intellivoice`, MAME `intv_voice.zip` | | Sears EXEC (`searsexc.bin`) | 8,192 | `834339de056d42a35571cae7fd5b04d1344001e9` | No-Intro `[BIOS]`, MAME `intvsrs.zip` | | Intellivision II EXEC (`ro-3-9506-010.ic6`) | 8,704 | `fb821a643b7714ed4c812553cd3f668766fd44ab` | MAME `intv2.zip` only | ecs.bin and ivoice.bin are **not** in the retrobat/batocera BIOS folders, only in the No-Intro and MAME sets. BIOS files are read in place and never committed (`.gitignore`).