aboutsummaryrefslogblamecommitdiff
path: root/README.rst
blob: 461f156d62f6c4d56f5a307508dd4eff3309822e (plain) (tree)
1
2
3
4
5
6
7
8
9


     




                                                    
                                                                            
                                                                         
                                                                   
                                                                           
                                                                        

                                                                             
                                                                              



























                                                                            
 

                                                                                      
RuNES
=====

.. image:: https://img.shields.io/crates/v/runes.svg
   :target: https://github.com/Determinant/runes
.. image:: https://img.shields.io/crates/l/runes.svg
   :target: https://github.com/Determinant/runes

As we know, there have been a ton of NES emulator implementations in various
kinds of languages (mostly C). All of these emulators come with different
accuracy and portability. RuNES is an attempt to build a reasonably
accurate (instruction level accurate), light-weight and efficient emulation
core library using Rust. Unlike sprocketnes_ or pinky_, RuNES strives to
provide with a clean and minimal core library without standard library (i.e.,
without Box, Rc, Vectors, etc.) that could be compiled and easily ported to
embedded environments. Of course, a simple SDL-based GUI is also provided as a
demonstration of use.

Feature
=======

- Core library with minimal use of the Rust core crate, and zero use of std.
- Support standard 6502 instruction set (unofficial instruction will be
  considered in the future).

- Instruction-level accuracy with accurate CPU/PPU timing.

Guidelines
==========

- Never use std in the core library.
- At the same time, avoid ``unsafe`` as much as possible, but use it at
  discretion to improve performance: remove unnecessary checks within a very
  localized context.

- Keep the core library code base minimal.

.. _sprocketnes: https://github.com/pcwalton/sprocketnes
.. _pinky: https://github.com/koute/pinky

Build
=====

::

    cargo build --release               # build the library only (no std dep)
    cargo build --examples --release    # or build the example emulator (requires std)