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

This commit is contained in:
thrust26 2018-12-08 09:53:00 +01:00
parent b6dcd110f0
commit d3b270dea8
1 changed files with 3 additions and 1 deletions

View File

@ -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 << "]: ";