r/EmuDev • u/Mythos-XV Playstation • 6h ago
CHIP-8 Chip-8 Emulator using C89 + Raylib.
https://youtu.be/NlGKuxo7onYI made this 2 months ago but forgot to share it.
This is my first emulator and it was a really fun experience,
but I did run into a nasty issue (a skill issue) because I was using C89 with Raylib, which is compiled as C99 and has a 1-byte bool that C89 doesn't have. My program treated the bool as an 8-byte enum which is what it is in C89, so it read garbage and messed up the controls. I'll never do that again, lol.
The code is pure spaghetti, I wanted to refactor a couple of things but I just got lazy.
My hope is that one day I can play PS1 games on my own emulator, but until then I'll probably go ahead and build a GameBoy emulator, this time using C99 or C++20.
1
u/that_brown_nerd 3h ago
did you use slop-generator(ai) for this project? I jus wanna know so that i donot accidently encourage ai usage which in turn would encourage environmental exploitation.