My recommendation is to start with the CPU emulation. The CPU in the Gameboy has decent documentation and there are plenty of implementations to look at if you're stumped. (One I like particular is the core in Higan, a multisystem emulator written in C++.)
jchw|7 years ago
voltagex_|7 years ago
stevekemp|7 years ago
Or you can just cheat, design a "toy" instruction set, and write something to process it. A couple of years ago I did that, in C/Perl:
* https://github.com/skx/simple.vm
Later I rewrote the interpreter/emulator in go:
* https://github.com/skx/go.vm
The downside with my approach here is that I ignored graphcs, sound, & I/O.
These days I'd recommend you write an emulator for the Chip-8 system..
corysama|7 years ago