From 529aa1bd2191e4264fa4e0d3b3f61aae698a9a7e Mon Sep 17 00:00:00 2001 From: "Adrian.Conlon" Date: Thu, 22 Jun 2017 10:27:19 +0100 Subject: [PATCH] Tidy profile output Signed-off-by: Adrian.Conlon --- Intel8080/test/Board.cpp | 4 +++- Z80/test/Board.cpp | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Intel8080/test/Board.cpp b/Intel8080/test/Board.cpp index 0921c76..ff81f8f 100644 --- a/Intel8080/test/Board.cpp +++ b/Intel8080/test/Board.cpp @@ -42,7 +42,9 @@ void Board::Cpu_ExecutingInstruction_Cpm(const EightBit::Intel8080&) { switch (pc.word) { case 0x0: // CP/M warm start m_cpu.halt(); - m_profiler.dump(); + if (m_configuration.isProfileMode()) { + m_profiler.dump(); + } break; case 0x5: // BDOS bdos(); diff --git a/Z80/test/Board.cpp b/Z80/test/Board.cpp index a6843e0..c3d4984 100644 --- a/Z80/test/Board.cpp +++ b/Z80/test/Board.cpp @@ -41,7 +41,9 @@ void Board::Cpu_ExecutingInstruction_Cpm(const EightBit::Z80&) { switch (pc.word) { case 0x0: // CP/M warm start m_cpu.halt(); - m_profiler.dump(); + if (m_configuration.isProfileMode()) { + m_profiler.dump(); + } break; case 0x5: // BDOS bdos();