Metadata-Version: 2.5 Name: lynx-python Version: 0.1.0.dev0 Summary: Readable, pure-Python Atari Lynx board (Lynx I and Lynx II) on 65c02-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 Classifier: Development Status :: 2 - Pre-Alpha Classifier: License :: OSI Approved :: MIT License Classifier: Programming Language :: Python :: 3 Classifier: Programming Language :: Python :: Implementation :: CPython Classifier: Programming Language :: Python :: Implementation :: PyPy Classifier: Topic :: System :: Emulators Requires-Python: >=3.11 Requires-Dist: w65c02-python @ git+file:///data/emu/w65c02-python@9ca4a2fbcb7028766d750aae98abd024e2006b83 Provides-Extra: dev Requires-Dist: pytest>=8; extra == 'dev' Requires-Dist: ruff==0.16.8; extra == 'dev' Provides-Extra: frontend Requires-Dist: pygame-ce; extra == 'frontend' Description-Content-Type: text/markdown # lynx-python A readable, pure-Python emulator of the **Atari Lynx** (Lynx I and Lynx II), to be built as a board on `w65c02-python`: that core owns the instruction set of the 65C02 cell inside Mikey; this repository will own everything around it: Mikey (timers, audio, video DMA and palette, UART, interrupts, the bus controller, the boot ROM overlay), Suzy (sprite engine, collision, math, inputs, the cart port), the 16 MHz tick timeline that ties them together, and the cartridge loader. **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 end in the brief for the session that builds it ([docs/handoff-brief.md](docs/handoff-brief.md)). ## Scope | Machine | Phase | | --- | --- | | Lynx II (bit opcodes, stereo) and Lynx I (65SC02 subset, mono) | machine rows from the start | | Carts: 256/512/1024/2048-byte blocks, AUDIN banking, 93Cxx EEPROM | milestones 0 and 7 | | Formats: `.lnx`, `.lyx`, BLL `.o`, each loose or in `.zip`/`.7z` | milestone 0: one loader, one cart description | | ComLynx between two consoles | later; the UART and its own echo are in | What stands in for a console (there is none here): the Epyx/Atari specification, logic-analyser captures of a Lynx II published with Gearlynx, and drhelius' Lynx Hardware Tests, whose expected values were taken on real machines. No die-level model of Mikey or Suzy exists. ## What is fetched Nothing third-party is committed. `scripts/fetch_references.py` rebuilds `reference/` and `tests/test_roms/` from `scripts/pinned_files.json` (28 files pinned by SHA-256) and `scripts/pinned_repos.json` (14 repositories at full commits, sparse where large): ```sh python scripts/fetch_references.py # everything missing python scripts/fetch_references.py --verify # check what is present ``` It needs `git` and `curl`. The boot ROM (`lynxboot.img`, SHA-1 `e4ed47fae31693e016b081c6bda48da5b70d7ccb`) and every cartridge are bring-your-own and are read in place. ## Scripts | Script | What | | --- | --- | | `scripts/fetch_references.py` | the pinned references and test ROMs | | `scripts/count_carts.py` | census of the local dumps, read in place: formats, sizes, block sizes, header fields, loader frames, and how many payloads each public table identifies ([docs/cartridge.md](docs/cartridge.md)) | | `scripts/mame_trace.py` | MAME 0.285 `lynx` per-instruction trace with the Suzy handshake writes ([docs/mame-oracle.md](docs/mame-oracle.md)) | | `scripts/libretro_run.py` | a locally built Holani libretro core driven headless through ctypes: frame digests, PNG, WAV ([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 entry in the pin lists.