summaryrefslogtreecommitdiff
path: root/blastem.c
diff options
context:
space:
mode:
authorMike Pavone <pavone@retrodev.com>2013-07-19 22:44:00 -0700
committerMike Pavone <pavone@retrodev.com>2013-07-19 22:44:00 -0700
commit88d08dacd5f844767933be389d3668a7ffa73ef3 (patch)
tree2142a62362b097f3f54148f2ceacc0799f6badab /blastem.c
parentac8549baa9e68eae2ecf8551f8dc6e1a0ba99ce4 (diff)
Implement 68K stop instruction
Diffstat (limited to 'blastem.c')
-rw-r--r--blastem.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/blastem.c b/blastem.c
index d5d8720..819071b 100644
--- a/blastem.c
+++ b/blastem.c
@@ -258,6 +258,12 @@ m68k_context * sync_components(m68k_context * context, uint32_t address)
context->int_ack = 0;
}
adjust_int_cycle(context, v_context);
+ if (context->current_cycle <= context->sync_cycle) {
+ context->sync_cycle = context->current_cycle + 4;
+ if (context->sync_cycle < context->int_cycle) {
+ context->target_cycle = context->sync_cycle;
+ }
+ }
if (break_on_sync && address) {
break_on_sync = 0;
debugger(context, address);