Commit d3b270de authored by thrust26's avatar thrust26
Browse files

fixed trapping on 'read from write port' functionality for CPU dummy peeks

parent b6dcd110
......@@ -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 << "]: ";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment