comparison m68k_core.c @ 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 374a5ae694e8
children
comparison
equal deleted inserted replaced
1936:2c1c88cd1a3f 1937:cafde1255ad3
1208 #endif 1208 #endif
1209 } 1209 }
1210 1210
1211 void resume_68k(m68k_context *context) 1211 void resume_68k(m68k_context *context)
1212 { 1212 {
1213 context->should_return = 0;
1213 #ifndef NEW_CORE 1214 #ifndef NEW_CORE
1214 code_ptr addr = context->resume_pc; 1215 code_ptr addr = context->resume_pc;
1215 context->resume_pc = NULL; 1216 context->resume_pc = NULL;
1216 m68k_options * options = context->options; 1217 m68k_options * options = context->options;
1217 context->should_return = 0;
1218 options->start_context(addr, context); 1218 options->start_context(addr, context);
1219 #else 1219 #else
1220 start_68k_context(context, 0); 1220 start_68k_context(context, 0);
1221 #endif 1221 #endif
1222 } 1222 }