From: kub Date: Wed, 26 Feb 2020 19:36:46 +0000 (+0100) Subject: fix for EI insn in cz80 (partial revert of 43e1401) X-Git-Tag: v2.00~779 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=91f5fbe89b3f52de91648b7eacf986d24ecc3ab0;p=picodrive.git fix for EI insn in cz80 (partial revert of 43e1401) --- 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);