Closed nwtnni closed 5 years ago
Correct me if I'm wrong, but I think a mask of 0x0FFF is consistent with the 8-bit alu_add function:
self.reg.set_flag(C, u16::from(a) + u16::from(n) > 0xff); self.reg.set_flag(H, (a & 0x0f) + (n & 0x0f) > 0x0f);
and other emulators I've checked with: SameBoy, binjgb, CoffeeGB
Thanks! you are correct.
Correct me if I'm wrong, but I think a mask of 0x0FFF is consistent with the 8-bit alu_add function:
and other emulators I've checked with: SameBoy, binjgb, CoffeeGB