All Projects → kondrak → Rust64

kondrak / Rust64

Licence: mit
Commodore 64 emulator written in Rust

Programming Languages

rust
11053 projects

Projects that are alternatives of or similar to Rust64

Play
Play! - PlayStation 2 Emulator
Stars: ✭ 1,117 (+534.66%)
Mutual labels:  emulator, emulation
Awesome Emulators Simulators
A curated list of software emulators and simulators of PCs, home computers, mainframes, consoles, robots and much more...
Stars: ✭ 94 (-46.59%)
Mutual labels:  emulator, emulation
Bizhawk
BizHawk is a multi-system emulator written in C#. BizHawk provides nice features for casual gamers such as full screen, and joypad support in addition to full rerecording and debugging tools for all system cores.
Stars: ✭ 1,138 (+546.59%)
Mutual labels:  emulator, emulation
Higan Verilog
This is a higan/Verilator co-simulation example/framework
Stars: ✭ 35 (-80.11%)
Mutual labels:  emulator, emulation
Nes
A Javascript NES Emulator
Stars: ✭ 168 (-4.55%)
Mutual labels:  emulator, emulation
Ryu64
A Nintendo 64 Emulator made in C#!
Stars: ✭ 36 (-79.55%)
Mutual labels:  emulator, emulation
Vita3k
Experimental PlayStation Vita emulator
Stars: ✭ 1,329 (+655.11%)
Mutual labels:  emulator, emulation
Giovanni
A Gameboy Emulator for the Apple Watch
Stars: ✭ 823 (+367.61%)
Mutual labels:  emulator, emulation
Cxbx Reloaded
Xbox (Original) Emulator
Stars: ✭ 1,746 (+892.05%)
Mutual labels:  emulator, emulation
Teensy64
C64 Emulation on a Teensy 3.6
Stars: ✭ 112 (-36.36%)
Mutual labels:  emulator, emulation
Bsnes Mt
bsnes-based SNES emulator featuring pixel-perfect integer scaling, PNG screenshots, built-in hotkeys, translations, bug fixes, and more.
Stars: ✭ 22 (-87.5%)
Mutual labels:  emulator, emulation
Epsxe64ubuntu
Install ePSXe Linux (x64) & shaders using BIOS HLE and Core Plugins on x86-64 Debian, Ubuntu, Linux Mint and their derivatives.
Stars: ✭ 130 (-26.14%)
Mutual labels:  emulator, emulation
Wakxy
Wakxy is a Wakfu packet sniffer (MITM). Written in C++/Qt with Javascript scripting support.
Stars: ✭ 12 (-93.18%)
Mutual labels:  emulator, emulation
Desmume
DeSmuME is a Nintendo DS emulator
Stars: ✭ 989 (+461.93%)
Mutual labels:  emulator, emulation
Cemu graphic packs
Community Graphic Packs for Cemu
Stars: ✭ 916 (+420.45%)
Mutual labels:  emulator, emulation
Unidbg
Allows you to emulate an Android ARM32 and/or ARM64 native library, and an experimental iOS emulation
Stars: ✭ 1,168 (+563.64%)
Mutual labels:  emulator, emulation
Skyline
Run Nintendo Switch homebrew & games on your Android device!
Stars: ✭ 670 (+280.68%)
Mutual labels:  emulator, emulation
Citra
A Nintendo 3DS Emulator
Stars: ✭ 7,009 (+3882.39%)
Mutual labels:  emulator, emulation
Gopher2600
Gopher2600 is an Atari 2600/VCS Emulator.
Stars: ✭ 98 (-44.32%)
Mutual labels:  emulator, emulation
Byuu
byuu is a multi-system emulator focused on performance, features, and ease of use.
Stars: ✭ 123 (-30.11%)
Mutual labels:  emulator, emulation

Build Status Build status

Rust64 - a C64 emulator written in Rust

This is my attempt to study the Rust programming language and have fun at the same time. The goal is to present in the least obfuscated way how the Commodore 64 works and what's happening behind the scenes once you start a program. Emulation is cycle based and fairly accurate at this point.

The emulator has a built-in visual debugger which lets you view the contents of each memory page in RAM, Color RAM, VIC registers, CIA registers and SID registers. The VIC window is a ICU64-style raster debugger where each pixel represents one VIC cycle and any events occuring at that time.

Major dependencies

Requires Rust 1.5.0 or higher to compile and run.

Youtube demo #1:

Screenshot

Youtube demo #2:

Screenshot

Screenshot:

Screenshot

Build instructions

cargo build
cargo run --release

You can pass a .prg file as a command line parameter to load it into memory once the emulator boots (just type RUN to start the program):

cargo run --release prgs/colors.prg

To run with double-sized window:

cargo run --release x2 prgs/colors.prg

To run with double-sized window and debug windows enabled:

cargo run --release x2 debugger prgs/colors.prg

C64 and special key mappings

ESC     - Run/Stop
END     - Restore
TAB     - Control
LCTRL   - C=
`       - <-
-       - +
INS     - &
HOME    - CLR/Home
BSPACE  - INST/DEL
[       - @
]       - *
DEL     - ^
;       - :
'       - ;
\       - =
F11     - start asm output to console (very slow!)
F12     - reset C64
RCTRL   - joystick fire button
NUMLOCK - toggle between joystick ports 1 and 2 (default: port 2)

In debugger window:
PGUP/PGDWN - flip currently displayed memory page
HOME/END   - switch currently displayed memory banks between RAM, Color RAM, VIC, CIA and SID

TODO

  • serial bus/disk drives (d64, t64, tap)
  • implement remaining undocumented ops
  • switch from SDL2 to cpal for audio once it supports OSX
  • improve SID emulation

Known Issues

  • missing serial bus may cause some very specific programs to perform incorrectly or get stuck in infinite loops
  • elaborate programs that require very precise timing are not running correctly yet

This is an on-off WIP project, so update frequency may vary.

Resources

The following documents and websites have been used to create this emulator:

Special thanks

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].