Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

ZX Spectrum emulator written in Rust

License

NotificationsYou must be signed in to change notification settings

rustzx/rustzx

Repository files navigation

RustZX CICrates.ioLicenseDiscord

logo

ZX Spectrum emulator written in Rust.

  • Watchthis video showcase (v0.9.x)
  • ReadCHANGELOG.md for info on the latest version changes

Features

  • Written in pure rust
  • Cross-platform
  • Full ZX Spectrum 48K and 128K emulation
  • Highly accurate emulation of Z80 core
  • Highly precise AY chip emulation
  • Beeper sound emulation
  • Supported formats:
    • tap - tape
    • sna - snapshot, both 48K and 128K versions supported
    • szx - snapshot, both 48k and 128k versions supported along withzlib compression.
    • scr - screenshot
  • Fast loading of tap files with standard loader
  • Very accurate timings
  • Full border emulation
  • Joystick emulation: Kempston, Sinclair
  • Kempston mouse emulation
  • Extended 128K keys emulation (arrows, backspace, caps lock)
  • Quick save/load
  • Compressed assets support (only.gz for now)
  • Separateno_std core library which can be used to port emulatoralmost anywhere.
    • Global allocator is still needed, but all dynamicallocations are minimized
    • All resource-heavy features are configurable via cargofeatures
  • Obscure Z80 features emulation:
    • WZ/memptr register (F3/F5 flags obscure behavior inBIT n, (HL))
    • Q register (F3/F5 flags obscure behavior inSCF andCCF)
    • Block instruction flagsoddities (LDxR/CPxR/INxR/OTxR)

Install

  1. Ensure that you have C compiler and CMake to build bundledsdl2
  2. Linux only: Install required development packages: [libasound2-dev]
  3. Install it with cargo
cargo install rustzx

How to use

rustzx --help# Show helprustzx test.tap# Autodetect file type and run in 48K moderustzx --ay test.tap# Run in 48K mode with AY sound chiprustzx -m128 --tape test128.tap# Run in 128K mode with taperustzx --rom tester.rom -s3# Run with custom rom and 3x screen scalingrustzx --nofastload test.tap# Run without fast tape loadingrustzx --mouse test.tap# Run with Kempston mouse support

For loading tape in 48K mode, pressj thenCtrl+p twice, as on a real Spectrum.You should seeLOAD "" on emulator's screen, then pressEnter (in 128K mode just press enter).In--nofastload mode, pressInsert to play the tape andDelete to stop.

If you have choppy audio, try--sound-latency option with bigger values.

Default key bindings:

Shortcut KeyFunction
F1Quick save
F2Quick load
F3Set normal emulation speed
F4Set 2x emulation speed
F5Max possible emulation speed
F6Enable frame trace info
F9Enable Kempston/Sinclair joy keyboard layer
InsertStart tape
DeleteStop tape
EndBreak command
Caps LockCaps lock command
BackspaceDelete
<Arrows>128K arrow keys
EscUnlock mouse (if--mouse is used)

In joy keyboard layer mode (F9)

Shortcut KeyFunction
<Arrows>Kempston joyarrows
AltKempstonfire
WASDSinclair Joy 1arrows
Caps LockSinclair Joy 1fire
IJKLSinclair Joy 2arrows
EnterSinclair Joy 2fire

Screenshots

References

Many resources were used to find out how to build this emulator.Huge thanks to the following resources that helped figure out a lot ofdetails about ZX Spectrum.

ROMs

Emulator contains ROMs, created by by Sinclair Research Ltd (now owned by Amstrad plc).

Amstrad hasgivenpermission to distribute their ROM's in conjunction with emulators.

In RustZX these ROMs are included in the source of the core emulator librarymod rustzx_core::zx::roms. Embedded romscan be opted-out from the core library by disabling featureembedded-roms.

About

ZX Spectrum emulator written in Rust

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors5

Languages


[8]ページ先頭

©2009-2025 Movatter.jp