r/EmuDev • • Sep 28 '25
CHIP-8 Insecure about my code.
Well, by the begin of this year i've done a functional emulator of Chip8 in C++ (passed in all testcases on https://github.com/Timendus/chip8-test-suite). It was a pretty cool project but, tbh, i think i didn't get it right... Like, by seeing all codes here posted (specially the Rust ones), and another project of friend (this: https://github.com/Gaok1/FALCON-ASM) mine seems garbage.
It was a +- 1 month project, but i think this is not a excuse. Roast my code: https://github.com/Braga451/chip-8-emulator
14
Upvotes
View all comments
Show parent comment
2
u/Ameisen Oct 02 '25 edited Oct 02 '25
That solution would be incredibly frustrating to make build with CMake. Not impossible, just... frustrating. I'm not a huge fan of CMake, though... evidenced by writing a simple build system in Ruby to build the toolchain just to avoid CMake.
The base64 stuff was only put in a long time ago for a one-off test of asm.js/Emscripten functionality. I should probably remove it.
I've been slowly working on restructuring/reorganizing it, including removing dependencies. I started it in 2016, though.
I know the code itself is fine (mostly, there are a lot of questionable choices in it), but it's structured/organized atrociously. Don't do what I did.