diff --git a/M6502/M6502.Test/Board.cs b/M6502/M6502.Test/Board.cs index 9454b52..0b66620 100644 --- a/M6502/M6502.Test/Board.cs +++ b/M6502/M6502.Test/Board.cs @@ -35,9 +35,6 @@ namespace M6502.Test this.symbols = new EightBit.Files.Symbols.Parser(); this.disassembler = new Disassembler(this, this.CPU, this.symbols); this.mapping = new MemoryMapping(this.ram, 0x0000, (ushort)Mask.Sixteen, AccessLevel.ReadWrite); - - this.symbols.Parse(string.IsNullOrEmpty(this.configuration.Symbols) ? string.Empty : this.configuration.RomDirectory + "/" + this.configuration.Symbols); - this.profiler = new Profiler(this.CPU, this.disassembler, this.symbols, this.configuration.Profile); } @@ -85,6 +82,11 @@ namespace M6502.Test this.CPU.ExecutedInstruction += this.CPU_ExecutedInstruction; this.WrittenByte += this.Bus_WrittenByte; + if (this.configuration.Profile || this.configuration.DebugMode) + { + this.symbols.Parse(string.IsNullOrEmpty(this.configuration.Symbols) ? string.Empty : this.configuration.RomDirectory + "/" + this.configuration.Symbols); + } + if (this.configuration.Profile) { this.profiler.StartingOutput += this.Profiler_StartingOutput;