# The VDP ## MSX1: tms9918-python, unchanged The standard asks for a "TI TMS-9918A compatible" VDP [TDB p. 10]. MAME 0.285's MSX1 rows carry `tms9929a` (34 machines), `tms9928a` (27), `tms9129` (24), `tms9918a` (23), `tms9118` (13), `tms9128` (6) and `tms9918` (5) (census.md; MSX2-era rows aside). VATT's sheet adds clones measured on real machines: Toshiba T6950 (Sanyo MPC-2), Yamaha YM2220 (Victor HC-30) and Yamaha V9938 in an MSX1 (Yamaha CX5MII). [tms9918-python](../../tms9918-python) already models the TMS9918A, 9928A and 9929A as data rows of one engine, with TI's 1978 memory schedule and the CPU access windows, and was fitted against **VATT** (the MSX program and its result sheet; rung 4 "partly met": inside the hardware spread at the periods measured on 14-18 machines). Its `consumers.md` already names the MSX1 as a later consumer. What the MSX board needs from it: | Need | Status in tms9918-python | | --- | --- | | TMS9918A / 9928A / 9929A rows | present | | TMS9118 / 9128 / 9129 rows (no 4/16K bit; Graphics II colour mask does not touch the pattern mask) | named in its consumers.md as "rows of the same variant table if a consumer ever needs them"; **a request to raise upstream** (fix starts upstream) | | Time in master clocks; the board brings it up to each port access | present (`run(master_clocks)`) | | /INT as a level | present (`int_line`): the MSX wires it to the Z80's /INT | | Ports: 98h data, 99h control/status | the board decodes; the core sees MODE | | Lost accesses when the CPU is too fast | present (`lost_access`, windows); VATT is the MSX hardware test that judges them | | VRAM size 16 KB (4 KB on none of the MSX rows met) | present | Clones (T6950, YM2220) are machine-row questions for later: each would be a variant row with its own evidence or nothing (the first MSX1 row uses a TI part). The VDP's RGB palette and composite output are the board's (tms9918-python leaves RGB to its boards). ## MSX2 and MSX2+: a new core, `v9938-python` The V9938 (MSX2) and V9958 (MSX2+) run TMS9918A software in their compatible modes but are different silicon: 128 KB (up to 192 KB) VRAM, 47 registers, a palette, bitmap modes G4-G7, a command engine (block moves, lines, searches, logical operations), sprite mode 2, a different memory schedule, interlace, superimpose; the V9958 adds YJK modes and horizontal scroll [V9938, V9958]. tms9918-python decided "*deliberately not*" to take a VRAM size beyond 16 KB, a register count, or command-engine hooks, and "a separate core (`v9938-python`) if an MSX2 board comes" (its consumers.md, "Successors"). **Recommendation (decision 3): its own repository `v9938-python`, with the V9958 as a row**, citing tms9918-python for the TMS-compatible modes but sharing no code (the family copies no code; a V9938 core may reproduce the TMS modes where the V9938 data book says they behave alike, with its own evidence). Reasons: different silicon and schedule (1,368 cycles a line at 21.48 MHz, per tms9918-python's survey); it has users outside the MSX boards (MAME 0.285 lists `v9938` in 115 and `v9958` in 17 of its MSX machines (census.md), and also in the Myarc Geneve 9640 (`geneve`, TI-99 family) and the Super Free Kick arcade boards (`sfkick`), checked with `mame -listxml` 2026-11-26); and its evidence is its own (VATT's MSX2 rows, openMSX's status-race recordings, the V9938 data book). It needs its own Phase 0. Judges for it later: the V9938/V9958 data books (tier 2, text layer on the V9938 scan); VATT's MSX2 rows (tier 3, captured on real units: 15 MSX2/2+/turbo R machines in the sheet); openMSX's `vdp-status-race` result files (hardware recordings, used as data per sources.md); FPGA re-implementations are non-commercial (ESE-VDP) or GPL (MSX1_MiSTer): closed box only.