comparison segacd.c @ 2519:0fae9d6a77c4

Fix sub cpu watchpoints
author Michael Pavone <pavone@retrodev.com>
date Sat, 05 Oct 2024 23:31:59 -0700
parents 0775f5e0c468
children c6bc66b16392
comparison
equal deleted inserted replaced
2518:e9bc45dd2eed 2519:0fae9d6a77c4
1175 cd->last_refresh_cycle = cd->last_refresh_cycle + num_refresh * REFRESH_INTERVAL; 1175 cd->last_refresh_cycle = cd->last_refresh_cycle + num_refresh * REFRESH_INTERVAL;
1176 context->cycles += num_refresh * REFRESH_DELAY; 1176 context->cycles += num_refresh * REFRESH_DELAY;
1177 1177
1178 scd_peripherals_run(cd, context->cycles); 1178 scd_peripherals_run(cd, context->cycles);
1179 if (address) { 1179 if (address) {
1180 if (cd->enter_debugger) { 1180 if (cd->enter_debugger || context->wp_hit) {
1181 genesis_context *gen = cd->genesis; 1181 genesis_context *gen = cd->genesis;
1182 cd->enter_debugger = 0; 1182 cd->enter_debugger = 0;
1183 #ifndef IS_LIB 1183 #ifndef IS_LIB
1184 if (gen->header.debugger_type == DEBUGGER_NATIVE) { 1184 if (gen->header.debugger_type == DEBUGGER_NATIVE) {
1185 debugger(context, address); 1185 debugger(context, address);