From d3b270dea85c6c108a8445688c7cfca88e9a0813 Mon Sep 17 00:00:00 2001 From: thrust26 Date: Sat, 8 Dec 2018 09:53:00 +0100 Subject: [PATCH] fixed trapping on 'read from write port' functionality for CPU dummy peeks --- src/debugger/CartDebug.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/debugger/CartDebug.cxx b/src/debugger/CartDebug.cxx index c6d575f3d..a555cc720 100644 --- a/src/debugger/CartDebug.cxx +++ b/src/debugger/CartDebug.cxx @@ -171,7 +171,9 @@ void CartDebug::triggerReadFromWritePort(uInt16 addr) myRWPortAddress = addr; mySystem.setDirtyPage(addr); - if(myRWPortTriggersBreak) + if(myRWPortTriggersBreak && + mySystem.m6502().lastReadAddress() && + (mySystem.getPageAccessType(addr) & System::PA_WRITE) == System::PA_WRITE) { ostringstream msg; msg << "RWP[@ $" << Common::Base::HEX4 << addr << "]: ";