ISSOtm / gb-asm-tutorial-old

An online Game Boy assembly programming tutorial
https://eldred.fr/gb-asm-tutorial/
54 stars 10 forks source link

DAA behavior needs confirmation #2

Open ISSOtm opened 6 years ago

ISSOtm commented 6 years ago

I am not sure about information on this line; specifically, the sections marked by "Note"s.

Any help, probably from emulator developers, would be appreciated.

ISSOtm commented 5 years ago

TODO: fix this using the info from https://github.com/LIJI32/SameBoy/blob/master/Core/z80_cpu.c#L465 [EDIT] Moved to https://github.com/LIJI32/SameBoy/blob/0b03b61564b7dbf2df8498d8d71c8e59fb83c92e/Core/sm83_cpu.c#L465 now

JL2210 commented 4 years ago

The H flag isn't modified by the second add/sub.

If the N flag is set, it is a sub instead of an add.