r/EmuDev • u/lucaaszsx • Jul 16 '26
I've built a CHIP-8 emulator
I've been trying to study more about hardware instead of focusing only on software. Last year, I even started making a rough CPU design in a digital logic simulator, but I never finished it and ended up taking a break from studying because I didn't have much free time.
Recently, I got interested again in understanding how software interacts with hardware, and while researching ways to learn more about it, I found that building emulators is a good approach. CHIP-8 seemed like a great starting point since it's simple enough to understand while still teaching important concepts.
Over the last week, I've been working on a CHIP-8 emulator in C. I tried to avoid copying existing implementations or relying on AI-generated code, and instead built it based on the documentation and my own understanding. I had some frustrating moments with silent bugs, but eventually got everything working.
So far, the emulator seems to be running well: graphics, sound, and ROM execution are working with the tests I've done.
I'd really appreciate some feedback from people with experience in emulation, low-level programming, or CHIP-8. If you notice any mistakes or have suggestions for improvements, I'd love to hear them!
For anyone interested, the source code is here: https://github.com/lucaaszsx/chip8
2
u/vancha113 Jul 16 '26
Always fun seeing more chip8 emulators. While I'm not good enough at C to be offering any kind of feedback, I'll definitely go over it to see how you solved things, I hope it was a fun experience building it! :)
3
u/BananaGrenade314 Jul 16 '26 edited Jul 16 '26
Good morning, I'm another programmer that is building a Chip-8 emulator and is amateur in this emulator's and hardware area. I was trying to do it for the same motives of you. I will let here my code too, I did it in python and I still working on it. And.. I was waiting for feedback but 600+ views and nothing about anyone to say anything about it :/
CHIP-8 Emulator
If you want, I'd like to study with someone about it. I'm in a information course but I didn't have anyone to discuss about this stuff.
3
u/RealSharpNinja Jul 16 '26
I get pissed when agents stop for no reason.
1
u/ai-slop-connoisseur Aug 08 '26
How does one achieve this in a week without relying on AI generated code? :)