Debugger: Fixed regression at prior commit dd274bc000 for bpm addr16 not triggering.

. Extended debugger regression tests to catch this (and test many other variants).
This commit is contained in:
tomcw
2019-12-09 16:27:13 +00:00
parent ba7a4005b0
commit b1316dc3da
5 changed files with 461 additions and 46 deletions

View File

@@ -1127,11 +1127,11 @@ int CheckBreakpointsIO ()
int iTarget;
int nAddress;
// bIgnoreNextOpcodeAddress = true:
// bIncludeNextOpcodeAddress == false:
// . JSR addr16: ignore addr16 as a target
// . RTS/RTI : ignore return as a target
_6502_GetTargets( regs.pc, &aTarget[0], &aTarget[1], &aTarget[2], &nBytes, true, true, true );
// . BRK/RTS/RTI: ignore return (or vector) addr16 as a target
_6502_GetTargets( regs.pc, &aTarget[0], &aTarget[1], &aTarget[2], &nBytes, true, true, false );
if (nBytes)
{
for (iTarget = 0; iTarget < NUM_TARGETS; iTarget++ )