One more question. At the end of the BIOS right before it turns control over to the game, it does this:
Code:
00F9: 86 ADD A,(HL) A:68 B:00 C:13 D:00 E:d8 F:c0 H:01 L:4d LY:91 SP:fffe Cy:23440288
00FA: 20 FE JR NZ,00FAh A:00 B:00 C:13 D:00 E:d8 F:90 H:01 L:4d LY:91 SP:fffe Cy:23440296
That is what Gambatte does.
But shouldn't that ADD A,(HL) produce a half carry flag? F should then equal $B0 and not $90 right?
The value in $014D is $98, so it definitely seems like that 8 + 8 should produce a half carry.
EDIT: Hmmm, looking at the source code, it looks like maybe gambatte only calculates the half carry flag when it needs it, need to look into that.