From d4775cb2663d30b9f9c5ea276f701734e4b3128f Mon Sep 17 00:00:00 2001 From: Adrian Conlon Date: Sun, 10 Aug 2025 12:52:48 +0100 Subject: [PATCH] Correct assertion failure during refresh cycle --- Z80/Z80.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Z80/Z80.cs b/Z80/Z80.cs index 61d4f23..5ff6dbf 100644 --- a/Z80/Z80.cs +++ b/Z80/Z80.cs @@ -599,10 +599,10 @@ namespace Z80 this.Tick(); _ = this.Bus.Data; this.RaiseIORQ(); - this.RaiseM1(); Debug.Assert(this.Cycles == 4); this.RefreshMemory(); Debug.Assert(this.Cycles == 5); + this.RaiseM1(); return this.Bus.Data; }