# Start here: the Amstrad CPC in one page Evidence tags as in the family's methodology: MEASURED, DIE, TEST ROM, DOC, OBSERVED (closed-box emulator runs), HYPOTHESIS. Short names for the sources used throughout: - **SOFT 968**: Amstrad's *CPC464/664/6128 Firmware* manual; **ap12** is its Appendix XII, "The Hardware and Hardware Variants" (tier 2, DOC). - **ACCC**: Longshot's *Amstrad CPC CRTC Compendium* v1.11, 08.2026, built on SHAKER runs on real machines of each CRTC type (tier 3, DOC/TEST ROM; CC BY-NC-ND 4.0, facts only, attribution required: provenance.md). - **KT**: Kevin Thacker's CPC technical pages (tier 3, DOC), by page name (`garray`, `8255cpc`, `fdc`, ...). - **Gerald 40010**: Gerald's logic schematic of the 40010 Gate Array from Sean Riddle's die photographs (tier 1, DIE, logical only). - **MAME**: MAME 0.285's `cpc*` drivers, run as a closed box (tier 5, OBSERVED). ## The machines | Row | Model | RAM | Storage | Video/glue | CRTC types found | Notes | | --- | --- | --- | --- | --- | --- | --- | | 1 | CPC464 | 64 KB | built-in cassette | Gate Array 40007 (KT `cpcptno`) | 0, 1, 2 (ACCC 4.2) | first model | | 2 | CPC664 | 64 KB | 3" disc (uPD765A) | Gate Array | 0, 1, 2 | short-lived; AMSDOS ROM 7 | | 3 | CPC6128 | 128 KB | 3" disc | Gate Array 40010 + RAM PAL 40031 (KT `cpcptno`) | 0, 1, 2 | bank switching (ap12 E) | | 4 | "cost-down" 464/6128 | 64/128 KB | as above | ASIC 40226 (KT `cpcptno`; ACCC 4.2 "Pre-ASIC") | 4 | an ASIC emulating the 6845 and Gate Array; real 8255 (ACCC 29.1.2) | | 5 | 464 Plus, 6128 Plus | 64/128 KB | cassette / 3" disc | ASIC 40489 (ACCC 4.2) | 3 | firmware on a cartridge; the ASIC also replaces the 8255 (KT `8255cpc`) | | 6 | GX4000 | 64 KB (not checked) | cartridge only | ASIC 40489 | 3 | the Plus without keyboard, tape or disc | | - | KC Compact (GDR clone) | 64 KB | cassette | TTL + Z8536 CIO instead of the Gate Array (KT `garray`) | - | MAME `kccomp`; out of scope | Years and sales figures are common knowledge, not checked against a pinned source, and are left out. Which CRTC a given machine has is a property of the unit, not the model: Amstrad bought 6845s from Hitachi, UMC and Motorola for the same models (ACCC 4.2, note 3), so the board takes the CRTC type as a parameter. ## Clocks and frame (DOC: ap12 A, D; ACCC 4.1, 4.4.4) - One 16 MHz crystal; the Gate Array divides it: Z80A at **4.00 MHz** (ap12 A: "±0.1%"), CRTC character clock **1 MHz**, AY-3-8912 **1.00 MHz** "exactly" (ap12 C), pixels at 16 MHz in mode 2 (ACCC 4.4.4: "clocked at ... 16 MHz", a mode-2 pixel is 0.0625 µs). - A CRTC character is 1 µs and two bytes of RAM (ap12 D). - The firmware's European frame: 64 characters x 312 lines = 19,968 µs, 50.08 Hz; the US table (selected by PPI port B bit 4, LK4) gives 262 lines (ACCC 4.1, ap12 D: R4 = 31, R5 = 6, R7 = 27 for NTSC). ## The bus, in one paragraph The Gate Array owns the RAM. Every microsecond it reads two bytes at the address the CRTC supplies (only from the base 64 KB: ACCC 4.1), and it holds the Z80's /WAIT low for three T-states of every four, so each Z80 memory or I/O cycle is pushed to a 4-T boundary (ap12 A: "logic that stretches MREQ and IORQ using the CPU WAIT facility so that the processor can only make one access to memory each microsecond"; ACCC 4.4.4 and chapter 26). The result programmers see: every instruction takes a whole number of microseconds ("NOPs"), listed in ACCC chapter 26. cpu-core.md says what this asks of z80-python. ## I/O decode (DOC: ap12 K; ACCC 5.1; KT `iopord`) Partial decode on the **high** address byte (B in `OUT (C),r`), so one OUT can select several devices: | Device | Selected when | Usual port | | --- | --- | --- | | Gate Array (and the 6128 RAM PAL, function 11) | A15 = 0, A14 = 1 | `7Fxx` | | CRTC (6845) | A14 = 0; A9-A8 = select, write, status, read | `BCxx`-`BFxx` | | Upper ROM select | A13 = 0 | `DFxx` | | Printer latch | A12 = 0 | `EFxx` | | 8255 PPI | A11 = 0; A9-A8 = port A, B, C, control | `F4xx`-`F7xx` | | FDC (664, 6128, DDI-1) | A10 = 0, A7 = 0; A8 = 1: uPD765A (A0: status/data), A8 = 0: motor | `FB7E`, `FB7F`, `FA7E` | | Expansion peripherals | A10 = 0 (`F8xx`-`FBxx`), low byte by convention | ap12 K table | The 6845 has no RD/WR connection on the CPC, so a read of a CRTC write port writes to it (ACCC 4.4.2). The Gate Array is write-only. ## Memory (DOC: ap12 B, E; KT `rampage`) - 64 KB RAM at 0000-FFFF on all models; the 6128 adds a second 64 KB, mapped by the PAL in eight configurations (ap12 E table; codes 4-7 put one extra 16 KB bank at 4000). - One 32 KB ROM (OS low, BASIC high), overlaid at 0000-3FFF and C000-FFFF when enabled by the Gate Array's mode/ROM register; writes always go to RAM underneath (ap12 B). - Upper ROMs 0-255 by an OUT to `DFxx`; the disc ROM (AMSDOS) is number 7 (ap12 I). - Video memory: 16 KB, chosen by R12 bits 5-4 (bits 13-12 of the start address), laid out as eight 2 KB blocks, one per character line (ap12 B). ## Where to read next gate-array.md, crtc-6845.md, cpu-core.md (the WAIT rule and z80-python), then ppi-psg-keyboard-tape.md, fdc-upd765.md, memory-roms-expansion.md, plus-asic.md, firmware.md, domains-and-speed.md, validation.md, handoff-brief.md.