# Start here: the Sharp X1 in one page Facts carry their source's short name (docs/sources.md) and, where it matters, an evidence tag: DOC (a document says so), OBSERVED (seen in a MAME run, tier 5), HYPOTHESIS (not yet backed). Page numbers are the printed pages of the book or manual. ## The machines (rows) | Row | Model | Year | What changes | MAME driver (OBSERVED, `mame -listfull`) | | --- | --- | --- | --- | --- | | `x1` | CZ-800C (and the C/D/Ck/F/G cost-down models, same architecture) | 1982 | the base: Z80A 4 MHz, HD46505 CRTC, 8255, AY-3-8910, Z80 CTC at 1FA0h (whether every CZ-800C has it on the main board: U1; MAME's `x1` has one, OBSERVED), 80C49 sub-CPU, 4 KB IPL ROM, 64 KB RAM, 48 KB graphics VRAM in I/O space, PCG | `x1` (CZ-800C) | | `x1twin` | CZ-830C | 1987 | an X1 with a PC Engine inside (out of scope; a row at most) | `x1twin` | | `x1turbo` | CZ-850C/851C/852C, turbo II CZ-856C, turbo III CZ-870C | 1984-1986 | 400-line mode, kanji ROM on board, Z80 DMA, Z80 SIO (RS-232C and mouse), 32 KB IPL, the 1FD0h mode register, 2HD on some models | `x1turbo` (CZ-850C), `x1turbo40` (CZ-862C) | | `x1turboz` | CZ-880C, turbo Z II/III | 1986-1988 | 4096-colour palette (64-colour and multicolour modes), the YM2151 built in (no CTC on it: SX1 p. 13 checkpoint at 0700h-0704h) | none in MAME 0.285 | The model names and years are common knowledge not yet checked line by line against SX1 ch. 15 and the user's manuals (HYPOTHESIS until then). The brief's scope: **X1 first, X1turbo as a row.** The turbo Z is listed for completeness and proposed as a later row (open decision). ## Clocks (DOC unless marked) - Z80A: 4 MHz (SX1 ch. 0 and ch. 15: "X1 は 4 MHz"). MAME: "Zilog Z80 @ 4.00 MHz" (OBSERVED). - CTC: channel 0 counts the 4 MHz system clock; CLK/TRG1 and CLK/TRG2 receive 2 MHz (SX1 p. 21; ch. 5). The turbo uses CTC channels for the SIO's baud clocks (UM880 §3.5.1). - AY-3-8910: MAME 2.00 MHz (OBSERVED); SX1 ch. 10 to be read for the board's figure. - YM2151 on the CZ-8BS1 FM board: **4 MHz** (SX1 ch. 11: the OPM is designed for 3.58 MHz, the CZ-8BS1 runs it at 4 MHz, so key codes are shifted). MAME runs its `ym` at 2.00 MHz (OBSERVED, `x1turbo`): contradiction C1. - MB8877A: MAME 1.00 MHz (OBSERVED); FUJ87 4-27 gives the clock options (1 MHz for 5.25-inch in the WD convention). - HD46505: MAME "894.88 kHz" (OBSERVED on `x1`); the real character clock depends on the 40/80-column bit (1A02h bit 6, SX1 p. 76): U3. ## The bus The X1 decodes **all sixteen address lines on I/O** (the Z80's `IN r,(C)` puts B on A8-A15): every device has a 16-bit port, which is why the graphics VRAM (48 KB) and the text, attribute and PCG memories can live in I/O space while all 64 KB of memory space is RAM. SX1 ch. 0 is the I/O map; docs/io-map-and-memory.md lists it. ## The chips and where each lives | Chip | Role | Family core | Doc | | --- | --- | --- | --- | | Z80A | main CPU | `../z80-python` | cpu-and-z80-peripherals.md | | Z80 CTC (Z8430) | timers, interrupts, baud clocks; one more on the FM board | in board (decision 3) | cpu-and-z80-peripherals.md | | Z80 SIO, Z80 DMA (turbo) | RS-232C and mouse; disk and memory DMA | in board (decision 3) | cpu-and-z80-peripherals.md | | HD46505-SP CRTC | video timing (SX1 p. 76) | in board; `crtc6845-python` discussion (decision 4) | video.md | | 8255 (8255②, 1A00h-1A03h) | printer data, status bits, mode bits | in board; `i8255-python` discussion (decision 5) | io-map-and-memory.md | | 80C49 sub-CPU (8255① face at 1900h) | keyboard, clock and calendar, timers, cassette deck, TV control | high-level, no firmware dump exists (decision 2) | subcpu.md | | AY-3-8910 | PSG and joystick ports | `../ay8910-python` | sound.md | | YM2151 (CZ-8BS1 board; turbo Z) | FM sound | `../ym2151-python` (Phase 0) | sound.md | | MB8877A | floppy controller (FD1793-compatible, positive bus) | in board; `wd179x-python` discussion (decision 6) | fdc.md | ## Reading order [io-map-and-memory.md](io-map-and-memory.md), [cpu-and-z80-peripherals.md](cpu-and-z80-peripherals.md), [video.md](video.md), [subcpu.md](subcpu.md), [sound.md](sound.md), [fdc.md](fdc.md), [reuse.md](reuse.md), [domains-and-speed.md](domains-and-speed.md), [validation.md](validation.md), [mame-oracle.md](mame-oracle.md), [census.md](census.md), [sources.md](sources.md), [provenance.md](provenance.md), then [handoff-brief.md](handoff-brief.md). ## Source short names SX1 (Iwai Ippei, 試験に出るX1, 1987), UM856 and UM880 (Sharp user's manuals), OMZ8501 (Oh! MZ, January 1985), ZPER (Zilog UM0081), MC6845, HIT87 (Hitachi 1987 data book), FUJ87 (Fujitsu 1987 data book, MB8877A), FD179X, NEC82 (8255A), YM2151, MCS48. Details and terms: [sources.md](sources.md).