gb-asm-tutorial-old icon indicating copy to clipboard operation
gb-asm-tutorial-old copied to clipboard

DAA behavior needs confirmation

Open ISSOtm opened this issue 7 years ago • 2 comments

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 avatar Jun 28 '18 11:06 ISSOtm

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

ISSOtm avatar Jan 08 '19 01:01 ISSOtm

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.

JL2210 avatar May 18 '20 19:05 JL2210