mirror of
https://github.com/MoleskiCoder/EightBitNet.git
synced 2026-04-19 15:16:41 +00:00
Correct LR35902 HALT test. Whatever problems this has, won't be solved by a hack
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user