cz80, improve cycle accounting

This commit is contained in:
kub 2020-12-14 21:06:24 +01:00
parent e0d5c83fd3
commit 85894ad406
4 changed files with 46 additions and 45 deletions

View file

@ -709,12 +709,9 @@ OP_EI:
zR++;
#endif
}
if (CPU->IRQState)
{
afterEI = 1;
CPU->ExtraCycles += 1 - CPU->ICount;
CPU->ICount = 1;
}
afterEI = 1;
CPU->ExtraCycles += 1 - CPU->ICount;
CPU->ICount = 1;
}
else zIFF2 = (1 << 2);
goto Cz80_Exec_nocheck;