Skip to content

Dhole/chip8-rs

Repository files navigation

chip8-rs

Rust no_std implementation of the chip8 virtual machine.

The chip8 is implemented as a library to be used like a backend. The frontend must implement a way to call Chip8::frame() at 60 frames, and handle keyboard events, output a tone, and draw the framebuffer into a display.

This repository contains two frontend implementation for two platforms:

  • Linux (Using SDL2 for display drawing, keyboard events and tone)

I built the STM32 version using a Blue Pill in a portable form. I call it E2SPA Mk I which stands for Electronic Entertainment System for the Post Apocalypse.

SDL2

Build

cd sdl
cargo build --target x86_64-unknown-linux-gnu --bin sdl

STM32

Build

cd stm32
cargo build --bin stm32 --release

Flashing on a blue pill

cd stm32
./flash.sh

License

GPLv3

About

Rust `no_std` implementation of the chip8 virtual machine.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages