Show HN: IronBoy, a highly accurate GameBoy emulator written in Rust, runs WASM (nicolas-siplis.com)
Hey HN! Been working on this emulator on and off for the last couple years, and thought now would be a good time to try and show it off here.
As far as unique features... I think this is the only online GameBoy emulator with support for save files? So there's your reason to exist, I guess.
The WASM port was something I had in the back of my mind but I just kept putting it off because it seemed like it would've been a pain in the ass to implement, but all in all I think it took less than a week so that was a nice surprise!
6 comments
[ 3.2 ms ] story [ 26.6 ms ] threadSuper interesting to see it working in a browser though! Nice work.
It would be hard to implement. ROM is unstructured data, interpreted however the game wants. You'd need some heuristics or instrumentation to find which parts are code, and where the code jumps to.
You still need the hardware emulated, and emulation ideally should be cycle accurate, so the generated WASM would be tightly coupled to the emulator. Resulting binary likely would be larger, as I expect 8-bit Thumb code to be more compact than 32-bit WASM.