# GROMs: the TMC0430 and the console's GPL firmware The GROM ("Graphics Read Only Memory") is TI's own byte-wide ROM with an internal, auto-incrementing address counter, read and written through two memory-mapped ports. The console's operating system and TI BASIC are mostly GPL (Graphics Programming Language) code in three console GROMs, interpreted by a TMS9900 program in the console ROM. Cartridges add up to five more GROMs. No TI data sheet for the GROM is known: TI's documents describe it only from the programmer's side, and Thierry Nouspikel listed "Data manual for GROM memory chips" among the documents he was looking for (his feedback page, read before his site was set aside). Tags as in memory-and-bus.md. ## What TI documents - **Size and placement.** "GROM: increments of 6K bytes located at 8K-byte boundaries" [GPL 2.x, line 907 of the OCR]; figure A of [CTD]: console "graphics ROMs, BASIC routines 18K × 8" (three 6 KiB GROMs) and on the cartridge port "additional graphics ROMs (6K × 8) × 5". So the GROM address space is 64 KiB in eight 8 KiB slots: slots 0-2 the console's, 3-7 a cartridge's, and each GROM fills 6 KiB of its 8 KiB slot. MAME's romset agrees: three 6,144-byte images loaded at 0000, 2000, 4000 (OBSERVED, `listxml ti99_4a`). - **Ports** [CTD A.3]: 9800 read data, 9802 read address, 9C00 write data, 9C02 write address, each partially decoded in its 1 KiB block. - **Protocol** [GPL L-1..L-2]: write the two-byte address to 9C02, **high byte first**; then read data at 9800 (or write data at 9C00, for GRAM devices); "after each operation, the GROM address pointer automatically increments", so blocks need no reloading. TI's example puts a delay (`SLA R8,16`, 52 clocks) between loading the address and the first read. - **Clock.** The GROMs run from the VDP's 447 kHz GROMCLK [CTD fig. A], so a GROM access is timed in the video domain, not the CPU's. - **Slow and weak.** "The GROM chips are rather poor line drivers at best" and their data bus sits directly on the I/O data bus [CTD B.1.2.2]; the GROMs hold READY low while they work (they are "slow memories" in the sense of [CTD] A.6), but how long is not stated in any TI document found (U7). - **Headers.** Every GROM or ROM that offers programs starts with a header (>AA, version, number of programs, pointers to the power-up, program, DSR, subprogram and interrupt lists); layouts in [GPL] appendix H and [CTD] D.4.2. The console's menu lists cartridge programs from these headers. A negative version byte in a cartridge GROM lets it "translate" the console's menu screens [GPL 1.x, lines 487-505]. ## What is not documented (unknowns for the brief) - U7 **Timing**: READY-low duration for an address write, an address read, a data read; the "prefetch" behaviour commonly described (the data port answers from a buffer filled after the previous access, so the first read after an address load returns a byte fetched in the background) is not in any TI document here. - U8 **Address read-back** (9802): byte order, whether the value read is the current address or address + 1, and whether reading it disturbs the counter. - U9 **Address counter width and wrap**: does the low 13 bits wrap inside the 8 KiB slot (so a GROM never carries into the next slot), and what a read in the 6-8 KiB hole of a slot returns. - U10 **Which GROM answers**: every GROM sees every address write and keeps its own copy of the counter; only the one whose slot matches drives data (implied by the single shared address, not stated). - U11 **Bases**: cartridge GROMs at other "GROM bases" (the 9800 block's other port addresses, used by multi-GROM-bank devices such as the p-code card's eight GROMs at a separate base, [PES] ch. 12) depend on the partial decode (U1 in memory-and-bus.md). Detectors for U7-U11: MAME's `tmc0430` device (LGPL-2.1+, closed box: observable through bus taps and READY timing in a trace), Classic99 and js99er (closed). No respect-clean tier-3 source is in hand now that Nouspikel's pages are set aside (open decision in the brief). The GROM is modelled from TI's protocol with every unknown a named, tagged choice; where MAME's observable behaviour differs, the difference is logged and judged by a test program run on hardware when one exists. ## The chip rule The GROM is used only by TI's home computers (99/4, 99/4A, the PEB's p-code card, and the 99/8's GROM-compatible logic): MAME 0.285's device list names no other user (its GROM device is part of the TI-99 tree). It stays in the board, behind a pin-shaped class `ti99_python.grom.Grom`, one instance per chip, all on one `GromBus`. ## Firmware (identified by SHA-1, never copied; census.md) | Image | SHA-1 | Size | | --- | --- | --- | | 99/4A GROM 0 (u500) | ea15d8b0ac52112dc0d5f4ab9a79ac8ca1cc1bbc | 6,144 | | 99/4A GROM 1 (u501) | 3ecead4b83ec525084c70b6123d4053f8a80e1f7 | 6,144 | | 99/4A GROM 2 (u502) | e255f0d65d69b927cecb8fcfac7a4c17d585ea96 | 6,144 | | 99/4A console ROM, high byte (u610) | a45245707c3dccea902b718554a882d214a82504 | 4,096 | | 99/4A console ROM, low byte (u611) | f4e774fd5913b387a763f1b8de5524c54b255434 | 4,096 | MAME's romset has one 99/4A ROM and GROM version (plus the 99/4QI's GROM 0 and the EVPC's patched GROM 1). Classic99's manual (history section, prose, read 2026-11-26) says the "QI" consoles changed the operating system to stop third-party cartridges such as AtariSoft's from booting, recognisable by "1983" and "V2.2" on the title screen. That MAME's `ti99_4qi` GROM 0 is that version, and which images a real V2.2 console has, is U12 (OBSERVED only; no TI document found).