notaz.gp2x.de
/
picodrive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
672b29e
)
fix for EI insn in cz80 (partial revert of 43e1401)
author
kub
<derkub@gmail.com>
Wed, 26 Feb 2020 19:36:46 +0000
(20:36 +0100)
committer
kub
<derkub@gmail.com>
Wed, 26 Feb 2020 19:36:46 +0000
(20:36 +0100)
cpu/cz80/cz80_op.c
patch
|
blob
|
blame
|
history
diff --git
a/cpu/cz80/cz80_op.c
b/cpu/cz80/cz80_op.c
index
317e958
..
b152008
100644
(file)
--- a/
cpu/cz80/cz80_op.c
+++ b/
cpu/cz80/cz80_op.c
@@
-712,6
+712,8
@@
OP_EI:
if (CPU->IRQState)
\r
{
\r
afterEI = 1;
\r
+ CPU->ExtraCycles += 1 - CPU->ICount;
\r
+ CPU->ICount = 1;
\r
}
\r
}
\r
else zIFF2 = (1 << 2);
\r