To speed up emulation, breakpoint checking is only performed if a specific flag is set:
if (flags & CPU_CHECK_BP) {
if (debugger.breakpointMatches(reg.pc)) {
breakpointReached(reg.pc);
}
}
During reset(), variable flags is set to a default value which has CPU_CHECK_BP and CPU_CHECK_WP set to 0. These flags must not be cleared if breakpoints / watchpoints are present.
To speed up emulation, breakpoint checking is only performed if a specific flag is set:
During
reset()
, variableflags
is set to a default value which hasCPU_CHECK_BP
andCPU_CHECK_WP
set to 0. These flags must not be cleared if breakpoints / watchpoints are present.