mstan/gbrecompiled — reverse-engineered prompt

Reverse engineered prompt

Build me a tool that can take an original Game Boy ROM and turn it into portable C code, then let me build and run that game as a normal native desktop app instead of through a traditional emulator.

I want the full flow to work, from analyzing the ROM, generating the C source, building the output, and running the finished game on Mac, Linux, or Windows. Make sure the runtime side is included too, so graphics, audio, input, timers, saves, and common cartridge memory bank controllers all work. For more complicated games, support a simple TOML config so I can give extra entry points, allow multiple valid ROM CRCs, and control generated file naming.

Please use the improvements from this development fork, especially the graphics correctness fixes, performance work, smoother audio behavior, and save write debouncing. I would also like basic debugging features, like trace logging, interpreter fallback logs, and the local debug server for inspection.

If anything is unclear, check the upstream project docs online and mirror the intended behavior.

Want more depth? Deep Reverse