Fixed trap'm' debugger commands when setting TIA addresses.

This commit is contained in:
Stephen Anthony 2016-12-19 14:26:35 -03:30
parent f66a61f3b7
commit 07287fe761
1 changed files with 5 additions and 3 deletions

View File

@ -1508,10 +1508,12 @@ void DebuggerParser::executeTrapMRW(bool read, bool write)
{
for(uInt32 i = beg; i <= end; ++i)
{
if((i & 0x1080) == 0x0000 && (i & 0x003F) == addr)
if((i & 0x1080) == 0x0000)
{
if(read) debugger.toggleReadTrap(i);
if(write) debugger.toggleWriteTrap(i);
if(read && (i & 0x000F) == addr)
debugger.toggleReadTrap(i);
if(write && (i & 0x003F) == addr)
debugger.toggleWriteTrap(i);
}
}
break;