diff m68k_core.c @ 883:9f149f0e98b7

It is now possible to switch back and forth between the menu ROM and the game
author Michael Pavone <pavone@retrodev.com>
date Fri, 13 Nov 2015 19:15:37 -0800
parents 4556818b6847
children 252dfd29831d
line wrap: on
line diff
--- a/m68k_core.c	Mon Nov 09 22:34:36 2015 -0800
+++ b/m68k_core.c	Fri Nov 13 19:15:37 2015 -0800
@@ -983,6 +983,16 @@
 {
 	code_ptr addr = get_native_address_trans(context, address);
 	m68k_options * options = context->options;
+	context->should_return = 0;
+	options->start_context(addr, context);
+}
+
+void resume_68k(m68k_context *context)
+{
+	code_ptr addr = context->resume_pc;
+	context->resume_pc = NULL;
+	m68k_options * options = context->options;
+	context->should_return = 0;
 	options->start_context(addr, context);
 }