Crates.io | rustzx |
lib.rs | rustzx |
version | 0.16.0 |
source | src |
created_at | 2021-05-16 14:18:48.163283 |
updated_at | 2023-03-31 10:48:52.22515 |
description | ZX Spectrum emulator |
homepage | |
repository | https://github.com/rustzx/rustzx |
max_upload_size | |
id | 398192 |
size | 100,710 |
ZX Spectrum emulator written in Rust
v0.9.x
)tap
- tapesna
- snapshot, both 48K and 128K versions supportedscr
- screenshot.gz
for now)no_std
core library which can be used to port emulator
almost anywhere.
features
WZ/memptr
register (F3/F5
flags obscure behavior in BIT n, (HL)
)Q
register (F3/F5
flags obscure behavior in SCF
and CCF
)LDxR
/CPxR
/INxR
/OTxR
)sdl2
libasound2-dev
]cargo install rustzx
rustzx --help # Show help
rustzx test.tap # Autodetect file type and run in 48K mode
rustzx --ay test.tap # Run in 48K mode with AY sound chip
rustzx -m128 --tape test128.tap # Run in 128K mode with tape
rustzx --rom tester.rom -s3 # Run with custom rom and 3x screen scaling
rustzx --nofastload test.tap # Run without fast tape loading
rustzx --mouse test.tap # Run with Kempston mouse support
For loading tape in 48K mode, press j
then Ctrl+p
twice, as on real Spectrum.
You should see LOAD ""
on emulator's screen, then press Enter
(in 128K mode just press enter).
In --nofastload
mode, press Insert
to play the tape and Delete
to stop
If you have choppy audio, try --sound-latency
option with bigger values.
F1
- quick saveF2
- quick loadF3
- set normal emulation speedF4
- set 2x emulation speedF5
- max possible emulation speedF6
- enable frame trace infoF9
- enable kempston/sinclair joy keyboard layerInsert
- start tapeDelete
- stop tapeEnd
- break commandCaps Lock
- caps lock commandBackspace
- delete<Arrows>
- 128K arrow keysEsc
- unlock mouse (if --mouse
is used)<Arrows>
- Kempston joy arrowsAlt
- Kempston fireWASD
- Siclair Joy 1 arrowsCaps Lock
- Sinclair Joy 1 fireIJKL
- Siclair Joy 2 arrowsEnter
- Sinclair Joy 2 fire
Many resources were used to find out, how to buildthis emulator. Huge thanks to the following resources which helped to figure out a lot of defails about ZX Spectrum.
Emulator contains ROMs, created by by Sinclair Research Ltd (now owned by Amstrad plc),
Amstrad has given
permission to distribute their ROM's in conjunction with emulators.
In RustZX these ROMs included in source of the core emulator library mod rustzx_core::zx::roms
. Embedded roms
can be opted-out from the core library by disabling feature embedded-roms
.