Skip to content

A simple chip-8 emulator in C++ using SDL2 with desktop & browser support

Notifications You must be signed in to change notification settings

atomheartother/chip8

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C++ip-8

This is a super simple CHIP-8 emulator weekend project. It uses SDL2 and can be transpiled to WASM using EMScripten to deploy on a website.

Demo: https://chip8.navennec.net/

Fully functional on Linux, Windows, Firefox, not tested on other platforms.

"Brick screenshot"

Installation

  • git clone git@github.com:atomheartother/chip8.git
  • Install cmake
  • mkdir build && cd build && cmake .. && cmake --build .

EMSCripten build

Same as above but you'll want emcmake from the emsdk. Then:

emcmake cmake .. && cmake --build .

Running

./chip8 <rom file> [instructions per second]

(The default value for instructions per second is 350).

Bugs

  • On Windows, the beeping sound is way too low
  • Sometimes the screen disappears or doesn't draw anymore in browser if you keep loading new ROMs.

About

A simple chip-8 emulator in C++ using SDL2 with desktop & browser support

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published