From f2e0be5006b59b54495162e56f1c8ba9cc99acf7 Mon Sep 17 00:00:00 2001 From: Adrian Conlon <98398945+AdrianConlon@users.noreply.github.com> Date: Wed, 7 Aug 2024 11:05:01 +0100 Subject: [PATCH] Small speedup --- M6502/Profiler.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/M6502/Profiler.cs b/M6502/Profiler.cs index 0e283d8..9834006 100644 --- a/M6502/Profiler.cs +++ b/M6502/Profiler.cs @@ -168,11 +168,8 @@ private void Processor_RaisingSYNC(object? sender, EventArgs e) { - // Everything needs this this.executingAddress = this.processor.Bus.Address.Word; - this.executingInstruction = this.processor.Bus.Peek(this.executingAddress); - - ++this.instructionCounts[this.processor.Bus.Data]; + ++this.instructionCounts[this.executingInstruction = this.processor.Bus.Data]; } private void Processor_ExecutedInstruction(object? sender, EventArgs e)