# cps2-python A readable, pure-Python emulator of the **Capcom CP System II (CPS-2)** arcade board, with each game as data. Proposed package `cps2`. To be built on the family's cores: `m68000-python`, `z80-python` and `dsp16-python` (the QSound DSP, run low level), with the CPS-A/CPS-B graphics chips shared with `cps1-python`. **Status (2026-11-12): Phase 0 complete. Groundwork only, no emulator code.** Start with [docs/handoff-brief.md](docs/handoff-brief.md) and the index in [docs/README.md](docs/README.md). ## What is here | Path | What | | --- | --- | | `docs/` | one document per subject, the oracle ladder, the MAME recipe, the handoff brief | | `scripts/fetch_references.py` | fetches the pinned references into `reference/` (git-ignored); `--verify` checks them | | `scripts/pinned_repos.json`, `scripts/pinned_files.json` | seven repositories at full commit hashes, one document by SHA-256 | | `scripts/census.py` | the census of CPS-2 sets from MAME 0.285 `-listxml` against the local ROM trees | | `scripts/mame_trace.py` | the headless MAME recipe: 68000 trace, Z80 trace, opcode/data image dumps | | `scripts/phoenix_pair.py` | compares a Phoenix set with MAME's decryption of its keyed parent | ```sh python -I scripts/fetch_references.py --verify # or without --verify to fetch (about 300 MB) python -I scripts/census.py # summary; --table, --pairs python -I scripts/mame_trace.py spf2t --seconds 2 python -I scripts/mame_trace.py spf2t --no-trace --z80 --seconds 2 python -I scripts/mame_trace.py spf2tu --no-trace --dump 0x100000 --seconds 1 python -I scripts/phoenix_pair.py spf2td spf2tu ``` Nothing third-party is committed. ROM sets, key files, the QSound DSP program (`dl-1425.bin`) and EEPROM images are bring-your-own and are read in place. ## Licence MIT (see `LICENSE`).