#c64 #commodore #emulator #resid #sid


Port of reSID, a MOS6581 SID emulator engine, to Rust

10 releases (breaking)

0.8.0 Aug 31, 2018
0.7.0 Jul 24, 2018
0.6.0 Jun 21, 2018
0.5.0 Jan 2, 2018
0.1.0 Dec 5, 2017

#4 in Emulators

Download history 12/week @ 2018-09-08 28/week @ 2018-09-15 1/week @ 2018-09-22 33/week @ 2018-09-29 11/week @ 2018-10-06 1/week @ 2018-10-13 21/week @ 2018-10-20 1/week @ 2018-10-27 33/week @ 2018-11-03 43/week @ 2018-11-10 20/week @ 2018-11-17 13/week @ 2018-11-24 21/week @ 2018-12-01

100 downloads per month
Used in 4 crates (1 directly)




Build Status Crates.io


Port of reSID, a MOS6581 SID emulator engine, to Rust.


This project originated from zinc64, a Commodore 64 emulator, around Jan 2017. It evolved to the point where it can be useful to others working on C64 sound/emulation so it is packaged and shipped as a standalone crate.


The port has reached compliance with the original resid implementation as of version 0.3. Output has been tested and verified to match the original implementation. Full sampler support has been added to v0.4 which reached feature parity with resid. Performance gap largely due to resampling has been closed in v0.5. SIMD optimization added in v0.6. Continuous integration and GPLv3 were brought to v0.7. v0.8 changes include documentation and api refinements/internal cleanup.


Once SID register read/writes are wired up to resid, all that is left to do is to generate audio samples and push them to audio output buffer.

while delta > 0 {
    let (samples, next_delta) = self.resid.sample(delta, &mut buffer[..], 1);
    let mut output = self.sound_buffer.lock().unwrap();
    for i in 0..samples {
    delta = next_delta;


Component Status
Envelope Done
ExternalFilter Done
Filter Done
Sampler Done
Spline Done
Wave Done
Sid Done


  • Thanks to Dag Lem for his reSID implementation
  • Thanks to Daniel Collin for motivating me to put this out and helping out with code optimization
  • Commodore folks for building an iconic 8-bit machine
  • Rust developers for providing an incredible language to develop in