libchip8

Crates.iolibchip8
lib.rslibchip8
version0.1.2
sourcesrc
created_at2019-06-20 08:54:02.641491
updated_at2019-06-20 09:16:03.550448
descriptionAn OS-independent chip8 interpreter library written in Rust.
homepage
repositoryhttps://github.com/YushiOMOTE/libchip8
max_upload_size
id142296
size64,070
Yushi OMOTE (YushiOMOTE)

documentation

README

libchip8

An OS-independent chip8 interpreter library written in Rust (no_std).

Once you implement OS-specific part, i.e. Hardware trait, you will get a complete chip8 interpreter for your environment.

struct Hardware;

// 1. Implement `libchip8::Hardware`
impl libchip8::Hardware for Hardware {
   ...
}

// 2. Run `Chip8` giving a rom binary.
let chip8 = libchip8::Chip8::new(Hardware);
chip8.run(include_bytes!("roms/invaders.ch8"));

Example

$ cargo run --example unix

This example is to run the chip8 interpreter on unix. It uses minifb for its graphics.

Also used for bare-metal chip8 project.

Commit count: 18

cargo fmt