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)