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.c
diff --git
a/cpu/cz80/cz80.c
b/cpu/cz80/cz80.c
index
d7bdba3
..
18fd620
100644
(file)
--- a/
cpu/cz80/cz80.c
+++ b/
cpu/cz80/cz80.c
@@
-270,6
+270,8
@@
Cz80_Check_Interrupt:
if (CPU->IRQState != CLEAR_LINE)
\r
{
\r
CHECK_INT
\r
+ CPU->ICount -= CPU->ExtraCycles;
\r
+ CPU->ExtraCycles = 0;
\r
}
\r
goto Cz80_Exec;
\r
}
\r