Metadata-Version: 2.5 Name: a5200-python Version: 0.1.0.dev0 Summary: Readable, pure-Python Atari 5200 SuperSystem board built on 6502-python and pokey-python 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 Requires-Python: >=3.11 Requires-Dist: 6502-python @ git+file:///data/emu/6502-python@741419a33d1de400a63f7c24c7916bb600694ca2 Requires-Dist: pokey-python @ git+file:///data/emu/pokey-python@5a06587 Provides-Extra: dev Requires-Dist: pytest>=8; extra == 'dev' Requires-Dist: ruff==0.16.8; extra == 'dev' Provides-Extra: frontend Requires-Dist: pygame-ce>=2.5; extra == 'frontend' Provides-Extra: sevenzip Requires-Dist: py7zr; extra == 'sevenzip' Description-Content-Type: text/markdown # a5200-python A readable, pure-Python emulator of the **Atari 5200 SuperSystem**, to be built as a board on [6502-python](https://github.com/alewman/6502-python): 6502-python owns the instruction set (the 5200's 6502C "SALLY" is an NMOS 6502 with a HALT pin); `pokey-python` owns POKEY; this repository will own everything else: ANTIC's display list, DMA and interrupts, GTIA's picture, the 16K of RAM, the BIOS socket, the controllers, the cartridge port, the loader, and the one clock that ties them together. **Status (2026-11-11): groundwork only, no emulator code.** The documents in [`docs/`](docs/README.md) gather what the build needs, every fact with its source and tier, and the brief for the session that builds it ([docs/handoff-brief.md](docs/handoff-brief.md)). ## Scope | Machine | Phase | | --- | --- | | 4-port 5200 (1982), BIOS CO19156 | 1 | | 2-port 5200 (1983), BIOS CO19156A | a machine row from the start, certified at milestone 6 | | PAL | never existed as a console; PAL is a field of the chips only | | Atari 400/800/XL/XE | not here; ANTIC and GTIA are written to be lifted out when such a board starts | Cartridges: 4K, 8K, 16K (one-chip and two-chip), 32K, Bounty Bob's 40K, and the homebrew Super Cart, as raw dumps or Atari800 `.car` files, loose or in zip/7z ([docs/cartridge.md](docs/cartridge.md)). ## What is fetched Nothing third-party is committed. `scripts/fetch_references.py` rebuilds `reference/` from `scripts/pinned_files.json` (25 files by SHA-256) and `scripts/pinned_repos.json` (3 repositories at full commits): ```sh python scripts/fetch_references.py # everything missing python scripts/fetch_references.py --verify # check what is present ``` It needs `git` and `curl`. The BIOS and all cartridges are bring-your-own, found by hash and read in place. ## Scripts | Script | What | | --- | --- | | `scripts/fetch_references.py` | the pinned references and test ROMs | | `scripts/count_carts.py` | census of the local sets, read in place: sizes, MAME's classes, the trailer, and a static answer to the one-chip/two-chip 16K question | | `scripts/mame_trace.py` | MAME 0.285 `a5200` per-instruction trace with chip-register accesses ([docs/mame-oracle.md](docs/mame-oracle.md)) | | `scripts/atari800_run.py` | a locally built Atari800 (`libatari800`) driven headless through ctypes ([docs/validation.md](docs/validation.md)) | ## Licence MIT (see `LICENSE`), for what is in this repository. The fetched material keeps its own terms, recorded per item in the pin lists.