notaz.gp2x.de
/
picodrive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
improved irq handling Cz80_Exec() calls with lots of cycles
[picodrive.git]
/
cpu
/
cz80
/
cz80_op.c
diff --git
a/cpu/cz80/cz80_op.c
b/cpu/cz80/cz80_op.c
index
ed13c9e
..
a4a5ef9
100644
(file)
--- a/
cpu/cz80/cz80_op.c
+++ b/
cpu/cz80/cz80_op.c
@@
-712,8
+712,10
@@
OP_EI:
if (CPU->IRQState)
\r
{
\r
afterEI = 1;
\r
+ CPU->ExtraCycles += 1 - CPU->ICount;
\r
+ CPU->ICount = 1;
\r
}
\r
- if (CPU->ICount <= 0)
\r
+
else
if (CPU->ICount <= 0)
\r
{
\r
CPU->ICount = 1;
\r
}
\r