From 94b8da456bbfafb2b807365f1cc848ade57e0aa3 Mon Sep 17 00:00:00 2001 From: Adrian Conlon <98398945+AdrianConlon@users.noreply.github.com> Date: Sat, 3 May 2025 11:45:55 +0100 Subject: [PATCH] Fix loads of z80 timing issues. 84 timing issues remain. --- Z80/Z80.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Z80/Z80.cs b/Z80/Z80.cs index b7092cc..63f36c2 100644 --- a/Z80/Z80.cs +++ b/Z80/Z80.cs @@ -877,9 +877,9 @@ namespace Z80 if (update) { - this.Tick(); if (this._displaced) { + this.Tick(); this.MemoryWrite(operand); if (!memoryZ) { @@ -888,6 +888,8 @@ namespace Z80 } else { + if (memoryZ) + this.Tick(); this.R(z, operand); } }