Use the correct virtual methods: BusRead and BusWrite to control bus access for Z80 a la M6502 implementation.

Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
This commit is contained in:
Adrian Conlon
2019-02-22 19:59:42 +00:00
parent 726c3fe4cc
commit 28b7a88f0f
2 changed files with 26 additions and 26 deletions
+2 -2
View File
@@ -118,9 +118,9 @@ namespace EightBit
this.Jump(0);
}
protected sealed override void Push(byte value) => this.Bus.Write(--this.SP.Word, value);
protected sealed override void Push(byte value) => this.BusWrite(--this.SP.Word, value);
protected sealed override byte Pop() => this.Bus.Read(this.SP.Word++);
protected sealed override byte Pop() => this.BusRead(this.SP.Word++);
protected sealed override Register16 GetWord()
{