Metadata-Version: 2.5 Name: ssp1601-python Version: 0.1.0.dev0 Summary: Readable, pure-Python Samsung SSP1601 DSP core: the processor in Sega's SVP (Virtua Racing) Author: alewman License: MIT License Copyright (c) 2026 alewman Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. License-File: LICENSE Classifier: Development Status :: 3 - Alpha Classifier: Intended Audience :: Developers Classifier: License :: OSI Approved :: MIT License Classifier: Operating System :: OS Independent Classifier: Programming Language :: Python :: 3 Classifier: Programming Language :: Python :: Implementation :: CPython Classifier: Programming Language :: Python :: Implementation :: PyPy Classifier: Topic :: Software Development :: Libraries Classifier: Topic :: System :: Emulators Requires-Python: >=3.11 Provides-Extra: dev Requires-Dist: pytest>=8; extra == 'dev' Requires-Dist: ruff==0.16.8; extra == 'dev' Description-Content-Type: text/markdown # 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](../megadrive-python) (`megadrive_python.svp`). **Status (2026-10-30): built, local.** 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`).