diff options
author | Mike Pavone <pavone@retrodev.com> | 2013-07-19 22:44:00 -0700 |
---|---|---|
committer | Mike Pavone <pavone@retrodev.com> | 2013-07-19 22:44:00 -0700 |
commit | 88d08dacd5f844767933be389d3668a7ffa73ef3 (patch) | |
tree | 2142a62362b097f3f54148f2ceacc0799f6badab /blastem.c | |
parent | ac8549baa9e68eae2ecf8551f8dc6e1a0ba99ce4 (diff) |
Implement 68K stop instruction
Diffstat (limited to 'blastem.c')
-rw-r--r-- | blastem.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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); |