r/EmuDev • • 4d ago

Readable Game Boy code base

Please suggest me some readable Game Boy emulator code bases.

I'm planning to make a DMG-01 emulator and I would like to read some good code.

Since I'm learning here, the primary objective is for the code to be understandable.

The programming language should not be an issue.

Just to give you some idea of my current emulation experience:

I've done a Chip-8 emulator some time ago:

https://github.com/netb258/clj8

I've also done this Master System / Game Gear project:

https://github.com/netb258/defn-system

However, this one uses an external Z80 CPU library.

I'm hoping to go full circle with a DMG-01 emulator.

1 Upvotes

2 comments sorted by

6

u/roflson85 4d ago

I’m partial to this one, because it’s mine. I made the APU and PPU so they can be plugged in to anyone’s project if you follow the interface.

It also works on windows or Mac.

Hardest bit is getting the build set up.

https://github.com/roflson/GBemu

1

u/Creepy_Sherbert_1179 1d ago

I will post my implementation because it is written in a high level language (Python)

https://github.com/atifcodesalot/hazelnut-gb-emu

You can also check the architecture.md file on the repo to get an idea on how things work.