From 15be1a3421956600cf3a773b96bf7aaf8f092d04 Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Tue, 28 Mar 2017 00:13:35 -0700 Subject: Implemented M68K trace mode. Some edge cases/SR update paths still need work --- genesis.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'genesis.c') diff --git a/genesis.c b/genesis.c index da95c8f..896e76b 100644 --- a/genesis.c +++ b/genesis.c @@ -82,6 +82,11 @@ static void adjust_int_cycle(m68k_context * context, vdp_context * v_context) printf("int cycle changed to: %d, level: %d @ %d(%d), frame: %d, vcounter: %d, hslot: %d, mask: %d, hint_counter: %d\n", context->int_cycle, context->int_num, v_context->cycles, context->current_cycle, v_context->frame, v_context->vcounter, v_context->hslot, context->status & 0x7, v_context->hint_counter); old_int_cycle = context->int_cycle; }*/ + + if (context->status & M68K_STATUS_TRACE) { + context->target_cycle = context->current_cycle; + return; + } context->target_cycle = context->int_cycle < context->sync_cycle ? context->int_cycle : context->sync_cycle; if (context->should_return) { -- cgit v1.2.3