Metadata-Version: 2.5 Name: a7800-python Version: 0.1.0.dev0 Summary: Readable, pure-Python Atari 7800 ProSystem emulator: MARIA on 6502-python, the 2600 half from a2600-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+https://github.com/alewman/6502-python@741419a33d1de400a63f7c24c7916bb600694ca2 Requires-Dist: a2600-python @ git+file:///data/emu/a2600-python@4613846 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' Description-Content-Type: text/markdown # a7800-python A readable, pure-Python emulator of the **Atari 7800 ProSystem**, to be built as a board on [6502-python](https://github.com/alewman/6502-python). The core owns the instruction set (SALLY is an NMOS 6502 with a HALT pin); this repository will own MARIA (display lists, line RAM, the DMA that stops the CPU, the DLI, WSYNC, the clock that runs the CPU at 1.79 or 1.19 MHz), the INPTCTRL latch and both memory maps, the cartridge connector with its schemes, and one loader for every file format people have. The TIA, the RIOT and the whole 2600 mode come from `a2600-python`, pinned; POKEY from `pokey-python`. **Status (2026-11-12): Phase 0 groundwork only, no emulator code.** The documents in [`docs/`](docs/README.md) gather what the build needs, each fact with its source and tier, and end in a brief for the session that builds it ([docs/handoff-brief.md](docs/handoff-brief.md)). What Phase 0 found, in short: - **MARIA has no die-level judge.** The best evidence is GCC's gate-level logic diagrams and chip specification, console measurements reported by developers, and an FPGA core transcribed from the diagrams. GCC's own layout files for the chip survive but nothing reads them today. - **SALLY's HALT** stops the CPU for whole cycles before any cycle, writes included; WSYNC is RDY and stretches reads. `6502-python` needs no change. The 5200 board reached the same finding independently ([docs/timing.md](docs/timing.md)). - **A headerless dump cannot say what hardware its cartridge has.** Typing by payload hash from MAME's CC0 software list covers 126 of the 245 local No-Intro cartridges; no `.a78` header exists anywhere on this machine ([docs/cartridge.md](docs/cartridge.md)). - MAME 0.285 and ProSystem run here headless as detectors; MAME does not model the slow cycle and charges DMA in one lump per line ([docs/mame-oracle.md](docs/mame-oracle.md)). ## Scope | Machine | Phase | | --- | --- | | NTSC 7800 with the 4 KiB BIOS | first | | PAL 7800 | a machine row from the start, certified later | | 2600 mode | a milestone of its own, judged by `a2600-python`'s gates | | Cartridges: linear, SuperGame and its options, Activision, Absolute, High Score Cartridge | milestones 1 and 3 | | POKEY carts, controllers | milestone 5 | | Banksets, XM, SOUPER, Covox | milestone 7 | ## What is fetched Nothing third-party is committed. `scripts/fetch_references.py` rebuilds `reference/` from `scripts/pinned_files.json` (60 files by SHA-256) and `scripts/pinned_repos.json` (10 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`. Wiki and forum snapshots are reported when changed and kept; everything else must match its hash. ## Scripts | Script | What | | --- | --- | | `scripts/fetch_references.py` | the pinned references and test programs | | `scripts/count_carts.py` | census of the local dumps by payload hash: formats, schemes, sound hardware, how many can be typed and from what ([docs/cartridge.md](docs/cartridge.md)) | | `scripts/mame_trace.py` | MAME 0.285 per-instruction SALLY trace with TIA, MARIA, RIOT and cartridge accesses, from a No-Intro zip in place ([docs/mame-oracle.md](docs/mame-oracle.md)) | | `scripts/prosystem_run.py` | a locally built ProSystem libretro core through `ctypes`: frame digests, a PNG, RAM ([docs/validation.md](docs/validation.md)) | ROMs and BIOS images are bring-your-own, read in place, located by hash. ## Licence MIT (see `LICENSE`) for what is in this repository. Fetched material keeps its own terms, recorded per pin.