mirror of
https://github.com/MoleskiCoder/EightBitNet.git
synced 2025-11-23 07:20:02 +00:00
Share instruction fetch and halt implementations
This commit is contained in:
@@ -96,6 +96,13 @@ namespace EightBit
|
||||
}
|
||||
}
|
||||
|
||||
protected override byte FetchInstruction()
|
||||
{
|
||||
var read = this.FetchByte();
|
||||
return this.HALT.Lowered() ? (byte)0 : read;
|
||||
}
|
||||
|
||||
|
||||
protected void ResetWorkingRegisters()
|
||||
{
|
||||
this.AF.Word = this.BC.Word = this.DE.Word = this.HL.Word = (ushort)Mask.Sixteen;
|
||||
|
||||
Reference in New Issue
Block a user