From 88d08dacd5f844767933be389d3668a7ffa73ef3 Mon Sep 17 00:00:00 2001 From: Mike Pavone Date: Fri, 19 Jul 2013 22:44:00 -0700 Subject: Implement 68K stop instruction --- blastem.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'blastem.c') 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); -- cgit v1.2.3