Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Locked thread
Floor is lava
May 14, 2007

Fallen Rib
I started working on a chip8 emulator after reading some random hackernews article and then someone linked me this thread.

Wish I had found this earlier.

Edit: Current progress, Quick SDL Chip8 Emulator:

Floor is lava fucked around with this message at 10:19 on Nov 29, 2014

Adbot
ADBOT LOVES YOU

Floor is lava
May 14, 2007

Fallen Rib
Should I leave in the part of FX56 & FX66 where the wiki adds "I=I+X+1" for the original or just use the current implementation?

Floor is lava
May 14, 2007

Fallen Rib
Here's my quick implementation in C/C++ using SDL2 for graphics:
https://github.com/floorislava/SDL2_Chip8_Emulator

Heavily influenced by this article and code:
http://www.multigesture.net/articles/how-to-write-an-emulator-chip-8-interpreter/

I'm going to add in a couple of toggles for the quirk mode stuff and make it more configurable. That and clean up the input code. It currently just uses fillrects for the pixels. Could easily be ported over to opengl with the same code.

  • Locked thread