/dy-chip8-reborn

A cross-platform, configurable CHIP-8 Emulator/Interpreter for Windows and Linux

Primary LanguageC

What is dy-chip8-reborn

dy-chip8-reborn is the second iteration of my chip8 emulator in C. The previous/first version was a rush job and I was inexperienced and the code base ended up being a mess with macros and what not god forbidden things littered all over the place.

This is my attempt to completely rewrite another chip8 emulator from scratch and newer goals in mind:

  • A feature-rich debugger
  • Accurate timers
  • Clean and Readable Code
  • Portable across Operating Systems

and anything else that I may wish to do in the future.

Usage

Currently the emulator is in the beta. Emulator passes all test ROMs borrowed from the Emudev Discord server.

You can obtain the games from this link

$ chip8-rb  path/to/romfile.ch8

Dependencies

  • raylib - Graphics and Audio wrapper for OpenGL
  • make - Build system
  • cc - A C Compiler

Compiling

Make sure that raylib, git, make are installed on your machine.

Install them using your distribution's package manager or compile from source from official website.

  1. Get a copy of the code - using git clone or Download Zip from GitHub.
$ git clone https://github.com/itspacchu/dy-chip8-reborn

$ cd dy-chip8-reborn

$ make -j3

After following above three steps, you should have a file called chip8-rb in the project root.