PC only proceeds when HALT pin is raised

This commit is contained in:
Adrian Conlon
2025-05-04 00:36:01 +01:00
parent 853569b2ca
commit e4494e943a

View File

@@ -84,6 +84,14 @@ namespace EightBit
}
}
protected override void IncrementPC()
{
if (this.HALT.Raised())
{
base.IncrementPC();
}
}
protected void ResetWorkingRegisters()
{
this.AF.Word = this.BC.Word = this.DE.Word = this.HL.Word = (ushort)Mask.Sixteen;