GBHawk: Fix Amazing Penguin

This commit is contained in:
alyosha-tas 2017-11-22 13:35:07 -05:00
parent 0e028a2284
commit afe5a7cd11
1 changed files with 9 additions and 9 deletions

View File

@ -76,15 +76,7 @@ namespace BizHawk.Emulation.Common.Components.LR35902
private void HALT_()
{
if (!FlagI)
{
cur_instr = new ushort[]
{IDLE,
IDLE,
IDLE,
HALT };
}
else
if (FlagI && (EI_pending == 0))
{
// if interrupts are disabled,
// a glitchy decrement to the program counter happens
@ -94,6 +86,14 @@ namespace BizHawk.Emulation.Common.Components.LR35902
IDLE,
OP_G};
}
else
{
cur_instr = new ushort[]
{IDLE,
IDLE,
IDLE,
HALT };
}
}