Share instruction fetch and halt implementations

This commit is contained in:
Adrian Conlon
2025-05-04 11:41:28 +01:00
parent 2336222c97
commit 93e09c192f
6 changed files with 28 additions and 30 deletions
+1 -6
View File
@@ -54,14 +54,9 @@ namespace Intel8080
{
this.HandleINT();
}
else if (this.HALT.Lowered())
{
_ = this.FetchByte();
this.Execute(0); // NOP
}
else
{
this.Execute(this.FetchByte());
this.Execute(this.FetchInstruction());
}
}