# Census of the CPS-2 library Measured 2026-11-12 with `python -I scripts/census.py` (summary), `--table` (one row per set) and `--pairs` (Phoenix sets and their keyed candidates), against MAME 0.285 `-listxml` for `capcom/cps2.cpp` (saved in `reference/mame-listxml/cps2.xml`) and the local ROM trees, read in place. Presence means the zip exists under that name; the key files were checked by CRC. ## Machines - **323 machines: 40 parents, 283 clones.** By kind: **276 original keyed sets**, **43 Phoenix Edition** sets (MAME marks them bootlegs; key = `phoenix.key`), 3 bootlegs that carry a key (`cybotsjd`, `progearjbl` with `phoenix.key`; `ssf2us2` with `ssf2u.key`), 1 bootleg with no key (`gigaman2`: an 8051 + OKI instead of the Z80 and QSound; the only set MAME marks `preliminary`; the other 322 are `good`). - Parents by year: 1993 3, 1994 6, 1995 4, 1996 8, 1997 7, 1998 2, 1999 2, 2000 4, 2001 3, 2004 1 (`hsf2`). All sets by year: 1993 39, 1994 57, 1995 43, 1996 73, 1997 40, 1998 26, 1999 8, 2000 17, 2001 14, 2004 6. - Original sets by region (the word before the build date in the description): Japan 85, USA 47, Asia 47, Europe 39, Hispanic 31, Brazil 20, World 6, Oceania 1. - Input layouts per set: see [inputs.md](inputs.md). ## Keys - 322 sets carry a 20-byte key ROM; **all 322 match MAME's CRC** in the non-merged zips; **176 distinct key files** (175 live keys + `phoenix.key`, 20 bytes of `FF`, SHA-1 `eff33c65a4f3862c231f9e4d6fefa7b34398dbf2`). - Decoded ([encryption.md](encryption.md)): encrypted range ends at `0x100000` for 112 keys, `0x200000` for 36, `0x800000` for 22, `0x40000` for 5; 34 distinct watchdog sequences; words 7 and 8 are `0x4000` and `0x0900` in every live key. - All 246 key bit strings of the ArcadeHacker CPS2 Desuicider 1.07 equal a local key file. ## No BIOS; one shared device ROM CPS-2 has no system ROM. The only file shared by every set is the QSound DSP program **`dl-1425.bin`** (24,576 bytes, CRC `d6cf5ef5`, SHA-1 `555f50fe5cdf127619da7d854c03f4a244a0c501`), present in every non-merged zip, in `MAME/ROMs (bios-devices)/qsound_hle.zip` and in `MAME/ROMs (non-merged)/qsound.zip` (SHA-1 checked for the last). **We have everything a set needs.** ## ROM sizes (the 40 parents) Program 0.5-4 MiB, graphics 4-32 MiB (unshuffled per 2 MiB bank at load), Z80 128-256 KiB, QSound samples 4-8 MiB. Program files are `ROM_LOAD16_WORD_SWAP` (little-endian words on disk); graphics `ROM_LOAD64_WORD` (four files interleaved by 16-bit word). ## Where the sets are | Tree | Sets | Parents | | --- | --- | --- | | `$MAME_ROMPATH` | **323 / 323** | 40 / 40 | | `source/.../MAME/ROMs (merged)` | 40 (parents only, clones merged inside) | 40 | | `source/.../FinalBurn Neo/arcade` | 322 (missing `progearu`) | 40 | | `roms-retrobat/mame` | 93 | 16 | | `roms-retrobat/fbneo` | 48 | 16 | The scripts and the board read the **non-merged** tree: every set is self-contained there, including `dl-1425.bin` and the key. ## The 40 parents Columns: year, region of the parent set, program KiB, graphics MiB, Z80 KiB, QSound MiB, and whether `roms-retrobat/mame` and `roms-retrobat/fbneo` hold it. | Set | Year | Region | Program | Gfx | Z80 | QSound | retrobat mame | retrobat fbneo | | --- | --- | --- | --- | --- | --- | --- | --- | --- | | `1944` | 2000 | Europe | 1536 | 20 | 128 | 8 | y | y | | `19xx` | 1996 | Europe | 2560 | 10 | 128 | 4 | - | - | | `armwar` | 1994 | Europe | 4096 | 20 | 256 | 4 | - | - | | `avsp` | 1994 | Europe | 2048 | 12 | 128 | 4 | y | y | | `batcir` | 1997 | Europe | 3584 | 16 | 256 | 4 | y | y | | `choko` | 2001 | Japan | 1024 | 16 | 128 | 4 | y | y | | `csclub` | 1997 | Europe | 2560 | 8 | 128 | 4 | - | - | | `cybots` | 1995 | Europe | 4096 | 32 | 256 | 4 | y | y | | `ddsom` | 1996 | Europe | 4096 | 24 | 256 | 4 | - | - | | `ddtod` | 1993 | Europe | 2560 | 12 | 128 | 4 | - | - | | `dimahoo` | 2000 | Europe | 2048 | 16 | 256 | 8 | y | y | | `dstlk` | 1994 | Europe | 4096 | 20 | 256 | 4 | - | - | | `ecofghtr` | 1993 | World | 2048 | 12 | 128 | 4 | - | - | | `gigawing` | 1999 | USA | 1536 | 16 | 128 | 8 | y | y | | `hsf2` | 2004 | USA | 4096 | 32 | 256 | 8 | - | - | | `jyangoku` | 1999 | Japan | 512 | 16 | 128 | 4 | y | y | | `megaman2` | 1996 | USA | 1536 | 8 | 256 | 4 | y | y | | `mmatrix` | 2000 | USA | 1536 | 32 | 128 | 8 | y | y | | `mpang` | 2000 | Europe | 1024 | 16 | 128 | 4 | - | - | | `msh` | 1995 | Europe | 4096 | 32 | 256 | 4 | - | - | | `mshvsf` | 1997 | Europe | 4096 | 32 | 256 | 8 | - | - | | `mvsc` | 1998 | Europe | 4096 | 32 | 256 | 8 | - | - | | `nwarr` | 1995 | Europe | 4096 | 32 | 256 | 4 | - | - | | `progear` | 2001 | Europe | 1024 | 16 | 128 | 8 | y | y | | `pzloop2` | 2001 | Europe | 2048 | 16 | 128 | 4 | - | - | | `qndream` | 1996 | Japan | 2048 | 8 | 128 | 4 | y | y | | `ringdest` | 1994 | Europe | 3072 | 18 | 256 | 4 | - | - | | `sfa` | 1995 | Europe | 2048 | 8 | 256 | 4 | - | - | | `sfa2` | 1996 | Europe | 3072 | 20 | 256 | 4 | - | - | | `sfa3` | 1998 | Europe | 4096 | 32 | 256 | 8 | - | - | | `sfz2al` | 1996 | Asia | 3072 | 20 | 256 | 4 | - | - | | `sgemf` | 1997 | USA | 2560 | 20 | 256 | 8 | y | y | | `spf2t` | 1996 | Europe | 1024 | 4 | 256 | 4 | y | y | | `ssf2` | 1993 | World | 2560 | 12 | 128 | 4 | - | - | | `ssf2t` | 1994 | World | 3584 | 16 | 256 | 4 | - | - | | `vhunt2` | 1997 | Japan | 4096 | 32 | 256 | 8 | - | - | | `vsav` | 1997 | Europe | 4096 | 32 | 256 | 8 | y | y | | `vsav2` | 1997 | Japan | 4096 | 32 | 256 | 8 | y | y | | `xmcota` | 1994 | Europe | 4096 | 32 | 256 | 4 | - | - | | `xmvsf` | 1996 | Europe | 3584 | 32 | 256 | 4 | - | - | Largest families: `ssf2` 19 sets, `xmvsf` 17, `xmcota` 15. ## Phoenix pairs `scripts/census.py --pairs` lists, for each of the 43 Phoenix sets, the keyed sets of the same family with the same program-ROM layout: every Phoenix set has at least one candidate locally. The exact parent must be picked per set (`spf2td` holds `pzfu_d.03a`, so `spf2tu`; `vsav2d` has one candidate, `vsav2`). Two pairs were measured word by word ([encryption.md](encryption.md)). ## Smoke list (proposed, for later milestones) Chosen to cover the hardware rather than the popular titles: `spf2t` (smallest graphics, 256 KiB encrypted range: rung 1 and the first lockstep), `vsav2` (whole 1 MiB range encrypted, a Phoenix pair), `ssf2` (1993, earliest board generation, 128 KiB Z80), `ssf2tb` (network adapter and the extra RAM), `pzloop2` (paddles), `ecofghtr` (dials), `progear` and `gigawing` (MAME's known slowdown and one-frame sprite lag: wait-state tests), `mvsc` (MAME's credits note on the object X/Y offsets), `ddtod` (4 players, 4 buttons), `armwar` (3 players), `hsf2` (2004, 32 MiB graphics, 8 MiB samples), `mvscjsing` (single-board, no digital volume).