diff --git a/src/gbemu/cpu.c b/src/gbemu/cpu.c index 0ee60a3..b49831b 100644 --- a/src/gbemu/cpu.c +++ b/src/gbemu/cpu.c @@ -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)