# ssp1601-python A readable, pure-Python **Samsung SSP1601** DSP core: the processor inside Sega's **SVP**, the chip on the Mega Drive's *Virtua Racing* cartridge. This repository is only the CPU. The SVP's memory controller (the DSP's external registers, the shared DRAM) belongs to the board, [megadrive-python](https://github.com/alewman/megadrive-python) (`megadrive_python.svp`). **Status (2026-10-30, unchanged at 2026-11-25): built; Virtua Racing matches MAME.** See [docs/validation.md](docs/validation.md). megadrive-python's `svp` extra pins `c863a2c`, and ssp1601-rust transcribes the same commit (later commits add licence headers, comments and docs only). See [docs/claims.md](docs/claims.md) for what is claimed and on what evidence: the instruction set is the subset Virtua Racing uses, from MAME 0.285's `ssp1601.cpp` and notaz's SVP document. There is no hardware oracle for this chip. ```python from ssp1601_python import SSP1601 cpu = SSP1601(program_read, ext_read, ext_write) # word-addressed program memory; EXT0-EXT7 cycles = cpu.step() # one instruction; MAME's cycle counts ``` Nothing is fetched or vendored; `scripts/fetch_references.py` rebuilds `reference/` (the Samsung data sheet, notaz's document, MAME's source at tag `mame0285`). ## Credits and licence MIT (see `LICENSE`). The instruction core is a transcription of MAME 0.285's `ssp1601.cpp` (BSD-3-Clause, Pierpaolo Prazzoli and Grazvydas Ignotas); its notice is kept at the top of `src/ssp1601_python/cpu.py` and in [NOTICE.md](NOTICE.md). The opcode map is notaz's `svpdoc.txt`, which builds on Tasco Deluxe's research; both are credited, as the document asks. The account of every source is [docs/provenance.md](docs/provenance.md).