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

View File

@@ -92,6 +92,11 @@ namespace EightBit
return current;
}
protected virtual byte FetchInstruction()
{
return this.FetchByte();
}
public void Execute(byte value)
{
this.OpCode = value;