From 91f5fbe89b3f52de91648b7eacf986d24ecc3ab0 Mon Sep 17 00:00:00 2001 From: kub Date: Wed, 26 Feb 2020 20:36:46 +0100 Subject: [PATCH] fix for EI insn in cz80 (partial revert of 43e1401) --- cpu/cz80/cz80_op.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cpu/cz80/cz80_op.c b/cpu/cz80/cz80_op.c index 317e9587..b1520088 100644 --- a/cpu/cz80/cz80_op.c +++ b/cpu/cz80/cz80_op.c @@ -712,6 +712,8 @@ OP_EI: if (CPU->IRQState) { afterEI = 1; + CPU->ExtraCycles += 1 - CPU->ICount; + CPU->ICount = 1; } } else zIFF2 = (1 << 2); -- 2.39.5