# Start here ## The machine in one paragraph The Gamate (Bit Corporation, Taiwan, 1990; later UMC) is a handheld built around one ASIC (UMC UA6588F on the units Kevin Horton measured; an earlier NCR-marked version had external RAM). From a 4.433 MHz crystal it runs a 6502-family CPU cell at 2.2165 MHz with 1 KB of RAM and a 4 KB internal BIOS, an LCD controller that scans a 160 x 150 window out of two 256 x 256 bitplanes in two 8 KB SRAMs (four greys by refreshing each row three times), an AY-3-8910-compatible sound block, a 135 Hz timer IRQ, and a software-clocked serial link that raises NMI. Cartridges (16 KB to 512 KB) sit at 6000-DFFF behind a protection chip that the BIOS must unlock with a serial "BIT CORPORATION" handshake. ## What to read 1. memory-map.md: the map, open bus, interrupts. 2. cpu.md: which 6502 (the main open question, C1). 3. lcd.md, sound.md, cartridges.md, bios.md, link-and-pad.md: one per subject. 4. census.md: 62 carts, two BIOS images, all identified. 5. domains.md: one domain; real time without any fast tier. 6. validation.md, mame-oracle.md, provenance.md: the oracle ladder, the detector, the terms. 7. handoff-brief.md: what to build, in what order, and the open decisions. ## The sources, by weight - **KH**: Kevin Horton, "Gamate Inside" V1.00 (2016-06-29), measured on real units with a logic analyser and an EPROM emulator in the cartridge slot (tier 3), and his bus capture (tier 1, narrow). - **NCR's 1985 data book** on the 65CX02 supercell (tier 2), which contradicts KH on the CPU. - **CC65**: cc65's Gamate target (Zlib), PeT's readings as a toolchain uses them (tier 3). - **MAME 0.285** (tier 5), run as a closed box. ## Commands ```sh python -I scripts/fetch_references.py # fetch the pinned references into reference/ python -I scripts/fetch_references.py --verify # check them NO_INTRO_DIR=... python -I scripts/census.py # the cartridge and BIOS census MAME_ROMPATH=... python -I scripts/mame_trace.py --cart "" --seconds 3 ```