Synchronise HALT implementation for Intel style processors with the C++ version.

Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
This commit is contained in:
Adrian Conlon
2019-08-29 09:05:31 +01:00
parent 08111f8590
commit bc491884b0
4 changed files with 9 additions and 34 deletions
+3 -6
View File
@@ -86,10 +86,7 @@ namespace EightBit.GameBoy
}
else
{
if (this.Halted)
{
this.Proceed();
}
this.RaiseHALT();
}
}
@@ -101,7 +98,7 @@ namespace EightBit.GameBoy
{
this.HandleINT();
}
else if (this.Halted)
else if (this.HALT.Lowered())
{
this.Execute(0); // NOP
}
@@ -557,7 +554,7 @@ namespace EightBit.GameBoy
case 1: // 8-bit loading
if (z == 6 && y == 6)
{
this.Halt(); // Exception (replaces LD (HL), (HL))
this.LowerHALT(); // Exception (replaces LD (HL), (HL))
}
else
{