{"id":13344393,"url":"https://github.com/kosarev/zx","last_synced_at":"2025-07-10T15:32:14.272Z","repository":{"id":57478632,"uuid":"106082566","full_name":"kosarev/zx","owner":"kosarev","description":"ZX Spectrum emulator written in a mix of Python and C++","archived":false,"fork":false,"pushed_at":"2021-11-07T12:50:20.000Z","size":3691,"stargazers_count":21,"open_issues_count":14,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-24T18:35:24.962Z","etag":null,"topics":["converter","emulator","mit-license","python","rzx","rzx-playback","sinclair","sinclair-zx-spectrum","spectrum","spectrum-emulator","tape","wav","z80","zx-spectrum","zx-spectrum-emulator","zxspectrum"],"latest_commit_sha":null,"homepage":"https://twitter.com/z80tools","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kosarev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-10-07T08:27:45.000Z","updated_at":"2024-05-31T20:26:58.000Z","dependencies_parsed_at":"2022-08-30T15:52:27.510Z","dependency_job_id":null,"html_url":"https://github.com/kosarev/zx","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kosarev%2Fzx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kosarev%2Fzx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kosarev%2Fzx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kosarev%2Fzx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kosarev","download_url":"https://codeload.github.com/kosarev/zx/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225646198,"owners_count":17501837,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["converter","emulator","mit-license","python","rzx","rzx-playback","sinclair","sinclair-zx-spectrum","spectrum","spectrum-emulator","tape","wav","z80","zx-spectrum","zx-spectrum-emulator","zxspectrum"],"created_at":"2024-07-29T19:33:08.642Z","updated_at":"2025-07-10T15:32:14.267Z","avatar_url":"https://github.com/kosarev.png","language":"Python","readme":"# zx\nZX Spectrum emulation framework in Python and C++\n\n![Python package CI](https://github.com/kosarev/zx/actions/workflows/python-package.yml/badge.svg)\n\n![Elven](https://raw.githubusercontent.com/kosarev/zx/master/screenshots/elven.png \"Elven Warrior\")\n\n[More screenshots](https://github.com/kosarev/zx/tree/master/screenshots)\n\n\n### Features\n* Designed to be suitable for research and development purposes\n  such as unattended testing of Spectrum software, timing\n  analysis, etc.\n* Meant to be easy to customize and re-use via Python interfaces.\n* Fast and accurate emulation.\n* Based on the fast and flexible\n  [Z80 emulator](https://github.com/kosarev/z80).\n\n\n### Development status\n\n* Platforms: Linux and Windows (via SDL2).\n* General status: working pre-alpha.\n* Supported machines: 48K only for now.\n* Display: multi-colour effects,\n  [accurate timings](https://github.com/kosarev/zx/blob/master/test/screen_timing).\n* Sound: EAR beeper and tape output supported.\n* Tape: TAP and TZX formats supported as well as conversion to WAV.\n* Snapshots: Z80.\n* Playback recordings: RZX.\n* Joystick: Xbox controllers supported via `evdev` (Linux only), mapped to cursor keys.\n\n\n### Installation and running\n\nFor the latest release:\n```shell\n$ pip install --upgrade pip\n$ pip install --upgrade setuptools wheel\n\n$ pip install zx\n```\n\nOr directly from the repository for current development version:\n```shell\n$ pip install --upgrade setuptools wheel\n$ pip install git+https://github.com/kosarev/zx\n```\n\nLocal development setups are also supported:\n```shell\n$ git clone --recursive https://github.com/kosarev/zx\n$ cd zx\n$ pip install --upgrade setuptools wheel\n$ pip install --editable .\n```\n\nRunning:\n```shell\n$ zx\n```\n\n\n### Controls\n\n`F1` displays help.\n\n`F2` is to save snapshot.\n\n`F3` is to load snapshot or tape file.\n\n`F6` pauses/resumes tape.\n\n`F10` quits the emulator.\n\n`F11` and double click switch between fullscreen and windowed mode.\n\n`PAUSE` and mouse click pause/resume emulation or RZX playback.\n\nAny Spectrum key stroke resumes emulation and leaves the RZX\nplayback mode back to the regular emulation mode.\n\n\n### Running snapshots, recordings and tapes\n\n```shell\n$ zx elven.z80\n```\n\n```shell\n$ zx exolon.rzx\n```\n\n```shell\n$ zx https://www.worldofspectrum.org/pub/sinclair/games/e/EricTheFloaters.tzx.zip\n```\n\n\n### Supported formats\n\nSnapshots: `.z80`.\n\nTapes: `.tap`, `.tzx`, `.wav`.\n\nPlaybacks: `.rzx`.\n\nScreenshots: `.scr`.\n\n[ZX Basic compiler](https://github.com/boriel/zxbasic) sources: `.zxb`.\n\nArchives: `.zip`.\n\n\n### Converting files\n\n```shell\n$ zx jack.tzx jack.wav\n```\n\n```shell\n$ zx eric.tap eric.z80\n```\n\n\n### Dumping files\n\n```shell\n$ zx dump rick.z80\nOrderedDict([('id', 'z80_snapshot'), ('a', 213), ('f', 66), ...\n```\n\nOn the `dump` command, **zx** parses the specified file (that can\nbe of any supported format) in the form of raw Python data.\n\n\n### Reference papers\n\n* [Screen timings](https://github.com/kosarev/zx/blob/master/test/screen_timing/SCREEN_TIMING.md)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkosarev%2Fzx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkosarev%2Fzx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkosarev%2Fzx/lists"}