mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -04:00
improved irq handling Cz80_Exec() calls with lots of cycles
git-svn-id: file:///home/notaz/opt/svn/PicoDrive@458 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
parent
4609d0cdb8
commit
170435846c
4 changed files with 23 additions and 25 deletions
|
@ -712,8 +712,10 @@ OP_EI:
|
|||
if (CPU->IRQState)
|
||||
{
|
||||
afterEI = 1;
|
||||
CPU->ExtraCycles += 1 - CPU->ICount;
|
||||
CPU->ICount = 1;
|
||||
}
|
||||
if (CPU->ICount <= 0)
|
||||
else if (CPU->ICount <= 0)
|
||||
{
|
||||
CPU->ICount = 1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue