Correct LR35902 HALT test. Whatever problems this has, won't be solved by a hack

This commit is contained in:
Adrian Conlon
2025-05-03 11:58:57 +01:00
parent 94b8da456b
commit 0679b95b77
-12
View File
@@ -13,8 +13,6 @@ namespace LR35902
{
this.bus = bus;
this.RaisedPOWER += this.LR35902_RaisedPOWER;
this.LoweringHALT += this.LR35902_LoweringHALT;
this.RaisedHALT += this.LR35902_RaisedHALT;
}
private void LR35902_RaisedPOWER(object? sender, EventArgs e)
@@ -24,16 +22,6 @@ namespace LR35902
this.RaiseMWR();
}
private void LR35902_RaisedHALT(object? sender, EventArgs e)
{
++this.PC.Word; // Release the PC from HALT instruction
}
private void LR35902_LoweringHALT(object? sender, EventArgs e)
{
--this.PC.Word; // Keep the PC on the HALT instruction (i.e. executing NOP)
}
private readonly Bus bus;
private readonly Register16 af = new((int)Mask.Sixteen);
private bool prefixCB;