mirror of
https://github.com/MoleskiCoder/EightBitNet.git
synced 2026-04-20 06:16:43 +00:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user