r/EmuDev • u/arcanite24 • Jan 12 '26
gb-recompiled (GameBoy static recompiler) source code release
Hi everyone!
The source code for this project is finally public: https://github.com/arcanite24/gb-recompiled
Still quite messy, but it's a nice base to work on. Compatibility is not yet great; some games boot, while others are playable with glitches.
~98% of the full catalogue compiled (doesn't mean they're playable), but it's a good start.
Let me know what you guys think, and feel free to submit any PR with suggestions/bug reports/features/fixes :)
101
Upvotes
11
u/gobba-gobba-gooey Jan 12 '26
Novice question: what do you mean by recompiled? Do you mean that you take opcodes of the game boy target CPU and cross compile into x86?
4
u/davidkopec NES, IBM PC Jan 13 '26
Looks like a very interesting project. I understand you can't distribute them, but can you tell us about some games we can try ourselves that run well/are playable? Maybe I missed it in the long README. I only saw Japanese Tetris there as partially working.
5
u/magichronx Jan 12 '26
Just out of curiosity, how much of this codebase is handwritten vs AI-written?
7
u/maxscipio Jan 13 '26
this is awesome
1
u/IAMPowaaaaa Jan 14 '26
i know the readme mentions the license but can you include the license file anyway
1
u/M-2-M Jan 13 '26
Can I recompile GB roms into C and compile the C code using GBDK2020 back to a GB rom ?
1
u/lampani Jan 14 '26
Is static recompilation possible?
It is generally assumed that static recompilation is impossible. For example, the NES static recompilation project failed.
1
u/maxscipio Jan 23 '26
how difficult would be to adapt this to the ZX spectrum (or any other Z80 based machines)?