changeset 1937:cafde1255ad3 mame_interp

Fix resuming 68K core when using interpreter
author Michael Pavone <pavone@retrodev.com>
date Sun, 19 Apr 2020 00:59:49 -0700
parents 2c1c88cd1a3f
children a7b753e260a2
files m68k_core.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/m68k_core.c	Sun Apr 19 00:59:09 2020 -0700
+++ b/m68k_core.c	Sun Apr 19 00:59:49 2020 -0700
@@ -1210,11 +1210,11 @@
 
 void resume_68k(m68k_context *context)
 {
+	context->should_return = 0;
 #ifndef NEW_CORE
 	code_ptr addr = context->resume_pc;
 	context->resume_pc = NULL;
 	m68k_options * options = context->options;
-	context->should_return = 0;
 	options->start_context(addr, context);
 #else
 	start_68k_context(context, 0);