Work towards accurate bus/memory/io timings. Especially Z80 m-cycle timing.

Signed-off-by: Adrian Conlon <adrian.conlon@gmail.com>
This commit is contained in:
Adrian Conlon
2020-07-05 00:09:51 +01:00
parent cd4af67177
commit 47ecdad3e8
11 changed files with 264 additions and 250 deletions
+3 -3
View File
@@ -127,9 +127,9 @@ namespace EightBit
this.Jump(0);
}
protected sealed override void Push(byte value) => this.BusWrite(--this.SP.Word, value);
protected sealed override void Push(byte value) => this.MemoryWrite(--this.SP.Word, value);
protected sealed override byte Pop() => this.BusRead(this.SP.Word++);
protected sealed override byte Pop() => this.MemoryRead(this.SP.Word++);
protected sealed override Register16 GetWord()
{
@@ -196,7 +196,7 @@ namespace EightBit
var offsetAddress = this.PC.Word++;
if (condition)
{
var offset = (sbyte)this.BusRead(offsetAddress);
var offset = (sbyte)this.MemoryRead(offsetAddress);
this.JumpRelative(offset);
}