About 10 years ago I tried to write a gameboy emulator based on a pdf document i found on the internet somewhere.
I ended up finding the documentation wrong in a handful of places, which made the project tedious. Did you find that document reliable?
I ended up finding the documentation wrong in a handful of places, which made the project tedious. Did you find that document reliable?
Something else I noticed was that there were some specs that I guess the gameboy follows, but not exactly. For example with swapping pages, it's supposed to take up to (I forget the actual numbers) 50 cycles, but the actual gameboy always finishes in exactly 38 cycles, and some games are written for that.
In the end, what worked for me was finding a working emulator that would output the registers' states every operation, and then making sure mine would match up with it.