From 284158247b35baef2c0680ceaa31f5bc68f97fd0 Mon Sep 17 00:00:00 2001 From: Adrian Conlon Date: Tue, 31 Mar 2026 21:52:20 +0100 Subject: [PATCH] Fix up 6502 test classes --- M6502/M6502.Test/Board.cs | 2 +- M6502/M6502.Test/M6502.Test.csproj | 2 +- M6502/Profiler.cs | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/M6502/M6502.Test/Board.cs b/M6502/M6502.Test/Board.cs index afbc4f5..5c4a140 100644 --- a/M6502/M6502.Test/Board.cs +++ b/M6502/M6502.Test/Board.cs @@ -17,7 +17,7 @@ namespace M6502.Test private readonly Ram ram = new(0x10000); private readonly Symbols.Parser symbols = new(); private readonly Disassembler disassembler; - private readonly Profiler profiler; + private readonly Profiler profiler; private readonly MemoryMapping mapping; private readonly Register16 oldPC = new((ushort)Mask.Sixteen); diff --git a/M6502/M6502.Test/M6502.Test.csproj b/M6502/M6502.Test/M6502.Test.csproj index 07e6309..dc23936 100644 --- a/M6502/M6502.Test/M6502.Test.csproj +++ b/M6502/M6502.Test/M6502.Test.csproj @@ -1,7 +1,7 @@  - net9.0 + net10.0 enable enable False diff --git a/M6502/Profiler.cs b/M6502/Profiler.cs index 1ed024a..b105588 100644 --- a/M6502/Profiler.cs +++ b/M6502/Profiler.cs @@ -2,14 +2,14 @@ { using System.Diagnostics; - public sealed class Profiler + public sealed class Profiler where TProcessor : Core { private readonly long[] instructionCounts = new long[0x100]; private readonly long[] instructionCycles = new long[0x100]; private readonly Dictionary[] addressCycleDistributions = new Dictionary[0x10000]; // Addresses -> cycles -> counts private readonly Dictionary scopeCycles = []; // ID -> Cycles - private readonly MOS6502 processor; + private readonly TProcessor processor; private readonly Disassembler disassembler; private readonly Symbols.Parser symbols; @@ -19,7 +19,7 @@ private long totalCycles = -1; private bool totalCyclesValid; - public Profiler(MOS6502 processor, Disassembler disassembler, Symbols.Parser symbols, bool activate) + public Profiler(TProcessor processor, Disassembler disassembler, Symbols.Parser symbols, bool activate) { ArgumentNullException.ThrowIfNull(processor); ArgumentNullException.ThrowIfNull(disassembler);