cpu: fix C flag calculation during ADD A,*
This commit is contained in:
@@ -156,6 +156,7 @@ static const unsigned int cb_op_cycles[256] = { 0 };
|
||||
do { \
|
||||
(cpu)->nf = 0; \
|
||||
(cpu)->hf = CALC_H_ADD((src), (dst)); \
|
||||
(cpu)->cf = CALC_C_ADD_8((src), (dst)); \
|
||||
(dst) += (src); \
|
||||
(cpu)->zf = (dst) == 0; \
|
||||
} while (0)
|
||||
|
||||
Reference in New Issue
Block a user