diff options
author | Mike Pavone <pavone@retrodev.com> | 2020-06-28 22:53:52 -0700 |
---|---|---|
committer | Mike Pavone <pavone@retrodev.com> | 2020-06-28 22:53:52 -0700 |
commit | aef4cb676cb5588b279ac22c095a6b91b06bc520 (patch) | |
tree | b62488448b973d1b0f089644216e590939092aa0 /genesis.c | |
parent | dd998469827d866ee88505d5527abd6db4ae8832 (diff) |
Enter debugger when a VDP data port read would cause a CPU lockup
Diffstat (limited to 'genesis.c')
-rw-r--r-- | genesis.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -266,7 +266,7 @@ static void adjust_int_cycle(m68k_context * context, vdp_context * v_context) } context->target_cycle = context->int_cycle < context->sync_cycle ? context->int_cycle : context->sync_cycle; - if (context->should_return) { + if (context->should_return || gen->header.enter_debugger) { context->target_cycle = context->current_cycle; } else if (context->target_cycle < context->current_cycle) { //Changes to SR can result in an interrupt cycle that's in the past |