cpu: fix C flag calculation during ADD A,*

This commit is contained in:
2018-06-17 13:55:56 -07:00
parent 6e3c9f4448
commit e520e64bc4

View File

@@ -156,6 +156,7 @@ static const unsigned int cb_op_cycles[256] = { 0 };
do { \ do { \
(cpu)->nf = 0; \ (cpu)->nf = 0; \
(cpu)->hf = CALC_H_ADD((src), (dst)); \ (cpu)->hf = CALC_H_ADD((src), (dst)); \
(cpu)->cf = CALC_C_ADD_8((src), (dst)); \
(dst) += (src); \ (dst) += (src); \
(cpu)->zf = (dst) == 0; \ (cpu)->zf = (dst) == 0; \
} while (0) } while (0)