GBHawk: Fix a bug in I Flag check

This commit is contained in:
alyosha-tas 2018-05-10 15:31:06 -04:00
parent a0e5e0e593
commit 678666ddf0
1 changed files with 3 additions and 1 deletions

View File

@ -151,6 +151,7 @@ namespace BizHawk.Emulation.Common.Components.LR35902
FetchInstruction(ReadMemory(RegPC++)); FetchInstruction(ReadMemory(RegPC++));
} }
instr_pntr = 0; instr_pntr = 0;
I_use = false;
break; break;
case RD: case RD:
Read_Func(cur_instr[instr_pntr++], cur_instr[instr_pntr++], cur_instr[instr_pntr++]); Read_Func(cur_instr[instr_pntr++], cur_instr[instr_pntr++], cur_instr[instr_pntr++]);
@ -302,7 +303,7 @@ namespace BizHawk.Emulation.Common.Components.LR35902
{ {
INTERRUPT_(); INTERRUPT_();
Halt_bug_3 = false; Halt_bug_3 = false;
Console.WriteLine("Hit this"); Console.WriteLine("Hit INT");
} }
} }
else else
@ -335,6 +336,7 @@ namespace BizHawk.Emulation.Common.Components.LR35902
RegPC++; RegPC++;
FetchInstruction(ReadMemory(RegPC)); FetchInstruction(ReadMemory(RegPC));
Halt_bug_3 = false; Halt_bug_3 = false;
Console.WriteLine("Hit un");
} }
else else
{ {