From d8ed1d1d13a2a45214b1a8dd6ee6e9d4971d5cdd Mon Sep 17 00:00:00 2001 From: Thomas Jentzsch Date: Mon, 3 Oct 2022 18:16:14 +0200 Subject: [PATCH] Fixed "logBreaks" output in debugger --- src/emucore/M6502.cxx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/emucore/M6502.cxx b/src/emucore/M6502.cxx index df9e9c73f..4ca269086 100644 --- a/src/emucore/M6502.cxx +++ b/src/emucore/M6502.cxx @@ -273,7 +273,12 @@ inline void M6502::_execute(uInt64 cycles, DispatchResult& result) else { if(myLogBreaks) + { + // Make sure that the TIA state matches the current system clock. + // Else Scanlines, Cycles and Pixels are not updated for logging. + mySystem->tia().updateEmulation(); myDebugger->log("BP:"); + } else { ostringstream msg;