mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-06 15:48:05 -04:00
core, fix z80 irq handling, reset defaults (cz80, drz80)
This commit is contained in:
parent
bfe516c3a9
commit
ad43165afc
6 changed files with 35 additions and 40 deletions
|
@ -711,15 +711,6 @@ OP_EI:
|
|||
USE_CYCLES(4)
|
||||
if (!zIFF1)
|
||||
{
|
||||
zIFF1 = zIFF2 = (1 << 2);
|
||||
while (GET_OP() == 0xfb)
|
||||
{
|
||||
USE_CYCLES(4)
|
||||
PC++;
|
||||
#if CZ80_EMULATE_R_EXACTLY
|
||||
zR++;
|
||||
#endif
|
||||
}
|
||||
if (CPU->IRQState)
|
||||
{
|
||||
CPU->Status |= CZ80_HAS_INT;
|
||||
|
@ -727,7 +718,7 @@ OP_EI:
|
|||
CPU->ICount = 0;
|
||||
}
|
||||
}
|
||||
else zIFF2 = (1 << 2);
|
||||
zIFF1 = zIFF2 = (1 << 2);
|
||||
goto Cz80_Exec_nocheck;
|
||||
|
||||
/*-----------------------------------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue