# Cartridges ("Solid State Software" command modules) Tags as in memory-and-bus.md. Census figures are in census.md. ## The port [CTD fig. A, A.3, B.1.2.2; GPL 2.x, appendix H] - A cartridge can carry **ROM (or RAM) at 6000-7FFF** ("additional ROM or RAM 8K × 8", predecoded by the console and selected on the GROM connector) and **up to five GROMs** in GROM slots 3-7 ("additional graphics ROMs (6K × 8) × 5"). Programs in either are listed by the console's menu from their headers (>AA, version, program list; grom.md). - The cartridge's GROMs share the console's GROM bus: the same ports 9800/9802/9C00/9C02, the same 447 kHz clock, the same READY behaviour (grom.md U7-U11). - "DON'T TRY TO ACCESS THE CARTRIDGE MEMORY SPACE FROM THE I/O PORT!" [CTD B.1.2.2]: the GROMs' data lines sit directly on the I/O data bus in the 4A; a later console might isolate them. ## Banking - **TI's own scheme, documented**: "ROM space in excess of 8K bytes may be obtained by bringing sequential 8K blocks into the DSR ROM page ... or by writing to a ROM address and then decoding that condition to strobe a flip-flop. The latter method was used on the Extended Basic cartridge to page the upper 4K half of that space. Either a data bus or an address bus bit may be used for data to the FF. Both schemes provided a nonpaged 4K base ROM, and paged the upper 4K half of the space" [CTD B.1.6.1]. So Extended BASIC: 6000-6FFF fixed, 7000-7FFF one of two 4 KiB banks chosen by a write into the cartridge space; which address or data bit selects the bank is U21 (the schematic of the cartridge is not in hand). - **MAME's PCB types** (`hash/ti99_cart.xml`, CC0, 319 cartridges; OBSERVED, mechanisms unread because MAME's `bus/ti99/gromport/cartridges.cpp` is LGPL-2.1+): | PCB | Count | Data areas seen | What the name and sizes suggest (HYPOTHESIS until a document or a dump's behaviour settles it) | | --- | --- | --- | --- | | standard | 241 | GROM and/or ROM ≤ 8 KiB | no banking | | gromemu | 35 | GROM + ROM | a ROM chip standing in for GROMs (third-party carts without TI's GROMs) | | paged16k | 28 | ROM 16 KiB (+ GROM) | two 8 KiB banks at 6000, selected by writes into 6000-7FFF | | mbx | 10 | GROM 8-24 KiB, ROM 16 KiB, RAM 1 KiB | Milton Bradley's MBX titles (Championship Baseball, Bigfoot, ...): a small RAM and a bank switch | | paged12k | 2 | GROM 32 KiB, ROM area 16 KiB | Extended BASIC (v100 and the later one): 4 KiB fixed + 2 × 4 KiB paged, [CTD] B.1.6.1's scheme | | minimem | 1 | GROM 6 KiB, ROM 4 KiB, NVRAM 4 KiB | Mini Memory: battery-backed RAM at 7000 | | super | 1 | GROM 8 KiB, NVRAM 32 KiB | SuperSpace II: battery RAM in banks (selected how: unknown) | | paged7 | 1 | GROM 8 KiB, ROM area 16 KiB | TI-CALC: a paged scheme MAME names "paged7" | - Later third-party and homebrew schemes (large ROM-only carts with many 8 KiB banks selected by writes to 6000 + 2n, "inverted" and "non-inverted"; GROM emulators such as the UberGROM; the FinalGROM 99 flash cartridge) appear in modern releases; the No-Intro set (absent here) would show which matter. They are rows in a cartridge-type table, each with its evidence, when a dump needs them. ## File formats (what a board loads) - **No-Intro TI-99/4A** set: not present under `$NO_INTRO_DIR` (census.md); its file layout (one file per chip? one file per cartridge with a header?) is unknown here (U22). - **MAME's RPK**: a zip with a `layout.xml` naming the ROM, GROM and RAM areas and the PCB type (MAME's own format; the software list above carries the same information). - **Classic99's convention** (OBSERVED in the file names of its `roms/` directory, not opened): one file per area with a suffix letter, `...C.BIN` for the CPU ROM at 6000, `...G.BIN` for GROM, `...D.BIN` for the second ROM bank. The board's loader takes areas, not files: `Cartridge(rom=..., grom=..., ram=..., pcb=...)`, with readers for RPK and the suffix convention, and a No-Intro reader once the set's layout is known. Cartridges are named by SHA-1 in save states, never embedded.