Mercurial > repos > blastem
diff blastem.c @ 446:1e828ed04a7c
Implement 68K stop instruction
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Fri, 19 Jul 2013 22:44:00 -0700 |
parents | cc754a309ead |
children | e730fc040169 |
line wrap: on
line diff
--- a/blastem.c Thu Jul 18 09:59:39 2013 -0700 +++ b/blastem.c Fri Jul 19 22:44:00 2013 -0700 @@ -258,6 +258,12 @@ 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);