GBHawk: Fix Amazing Penguin
This commit is contained in:
parent
0e028a2284
commit
afe5a7cd11
|
@ -76,15 +76,7 @@ namespace BizHawk.Emulation.Common.Components.LR35902
|
||||||
|
|
||||||
private void HALT_()
|
private void HALT_()
|
||||||
{
|
{
|
||||||
if (!FlagI)
|
if (FlagI && (EI_pending == 0))
|
||||||
{
|
|
||||||
cur_instr = new ushort[]
|
|
||||||
{IDLE,
|
|
||||||
IDLE,
|
|
||||||
IDLE,
|
|
||||||
HALT };
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
// if interrupts are disabled,
|
// if interrupts are disabled,
|
||||||
// a glitchy decrement to the program counter happens
|
// a glitchy decrement to the program counter happens
|
||||||
|
@ -94,6 +86,14 @@ namespace BizHawk.Emulation.Common.Components.LR35902
|
||||||
IDLE,
|
IDLE,
|
||||||
OP_G};
|
OP_G};
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
cur_instr = new ushort[]
|
||||||
|
{IDLE,
|
||||||
|
IDLE,
|
||||||
|
IDLE,
|
||||||
|
HALT };
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue