From 7c2c7a19734393b88b1124b95b44638c5be9bf57 Mon Sep 17 00:00:00 2001 From: Adrian Conlon Date: Thu, 28 May 2026 18:19:34 +0100 Subject: [PATCH] Closer to C++ clocked chip implementation --- EightBit/ClockedChip.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/EightBit/ClockedChip.cs b/EightBit/ClockedChip.cs index e415c3e..695ee56 100644 --- a/EightBit/ClockedChip.cs +++ b/EightBit/ClockedChip.cs @@ -19,9 +19,9 @@ namespace EightBit [MethodImpl(MethodImplOptions.AggressiveInlining)] public void Tick(int extra = 1) { + this.Cycles += extra; for (var i = 0; i < extra; ++i) { - ++this.Cycles; this.Ticked?.Invoke(this, EventArgs.Empty); } }