# Start here: the MSX on one page The MSX is a 1983 standard (ASCII and Microsoft) rather than one machine: dozens of makers built computers to one specification, so a board is a **machine table** of rows that share chips and differ in slots, ROMs, keyboards, VDP part and region. MAME 0.285 lists 264 of them (census.md). Keys in brackets are in [sources.md](sources.md). ## MSX1, the first target | Part | What the standard asks | Family core | | --- | --- | --- | | CPU | "Z80A compatible, clock 3.579545 MHz (NTSC color sub-carrier frequency), **1 WAIT in M1 CYCLE**" [TDB p. 10] | [z80-python](../../z80-python) with the M1-cycle hook ([cpu.md](cpu.md)) | | VDP | "TI TMS-9918A compatible" [TDB p. 10]: TMS9918A, 9928A, 9929A and TI's later 9118/9128/9129 in practice, plus a few clones (Toshiba T6950, Yamaha YM2220) | [tms9918-python](../../tms9918-python) ([vdp.md](vdp.md)) | | PSG | "GI AY-3-8910 compatible", clock 1.7897725 MHz (half the CPU clock) [TDB p. 42]; often a YM2149, or inside an MSX engine | [ay8910-python](../../ay8910-python) ([psg.md](psg.md)) | | PPI | "Intel i-8255 compatible" [TDB p. 10]: port A selects the slots, B reads the keyboard, C scans it and drives the cassette, the CAPS lamp and the key click | in the board ([ppi-keyboard.md](ppi-keyboard.md)) | | Memory | 32 KB MSX-BASIC ROM, at least 16 KB RAM, four primary slots each expandable to four [TDB p. 10] | board ([slots-and-memory.md](slots-and-memory.md)) | | Cartridges | two slots usually; ROM cartridges with or without mappers, some with sound (SCC, MSX-MUSIC) | board ([cartridges.md](cartridges.md), [scc.md](scc.md), [msx-music.md](msx-music.md)) | | Storage | cassette standard ([cassette.md](cassette.md)); disk optional, by cartridge or built in ([disk.md](disk.md)) | board | | Firmware | the maker's BIOS + MSX-BASIC (never shipped), or C-BIOS (BSD-2-Clause) | [bios.md](bios.md) | Many machines fold the PPI, PSG, slot logic and the M1 wait into one **MSX engine** (Yamaha S3527 for MSX1, S1985 for MSX2, Toshiba's T9769 family, all on the MSX Assembly Page's list): the board models the functions, and an engine row only changes which quirks apply. ## Clocks and domains The TMS9918A family runs from a 10.738635 MHz crystal (its master clock, three times the colour subcarrier) and offers a CPUCLK output at a third of it, 3.579545 MHz: the Z80's clock [TI data manual, as tms9918-python cites it]. Whether a given MSX1 clocks its Z80 from the VDP's CPUCLK or from a separate oscillator is a per-machine fact (HYPOTHESIS: locked, until a schematic or service manual for the chosen row says so; U2 in the brief). The PSG runs at CPU / 2 [TDB p. 42], cartridge sound chips on the cartridge bus CLOCK pin (the CPU clock) [TDB p. 32]. The MSX2's V9938 takes 21.477270 MHz and divides it the same way. An MSX1 is **one domain**, era 1 in the charter's table. Disk controllers bring their own crystal (a second domain once modelled at bit level). [domains-and-speed.md](domains-and-speed.md). ## The generations (later rows) | Generation | Adds | New family pieces | | --- | --- | --- | | MSX2 (1985) | Yamaha V9938 (128 KB VRAM, bitmaps, command engine, sprite mode 2), the memory mapper (ports FC-FF), the RP5C01 clock, a sub-ROM, Disk BASIC common | `v9938-python` (new core: decision 3), RP5C01 in the board | | MSX2+ (1988) | V9958 (YJK, horizontal scroll), MSX-MUSIC built in on many, Kanji ROM | V9958 as a row of the V9938 core; ym2413-python | | turbo R (1990) | R800 CPU (a Z80-compatible at 7.16 MHz with a multiplier), PCM, the S1990 bus controller | `r800-python` (new CPU core) | The order and the reasons: [machines.md](machines.md). ## Modelling levels (charter axis B) Z80, VDP, PSG, SCC: **cycle**. PPI, slots, mappers: cycle (every access is a bus cycle the core already makes). FM: whatever ym2413-python offers (its own ladder). Cassette: signal level (a pulse stream from `.wav`, or `.cas` turned into one). Disk: first **functional at the controller's registers** with sector images, bit-level later. BIOS: never modelled; the player's ROM or C-BIOS runs as a program. ## Reading order [slots-and-memory.md](slots-and-memory.md) → [cpu.md](cpu.md) → [vdp.md](vdp.md) → [psg.md](psg.md) → [ppi-keyboard.md](ppi-keyboard.md) → [cartridges.md](cartridges.md) → [scc.md](scc.md) → [msx-music.md](msx-music.md) → [disk.md](disk.md) → [cassette.md](cassette.md) → [bios.md](bios.md) → [machines.md](machines.md) → [domains-and-speed.md](domains-and-speed.md) → [validation.md](validation.md) → [handoff-brief.md](handoff-brief.md).