summaryrefslogtreecommitdiff
path: root/m68k_core.c
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2015-11-13 19:15:37 -0800
committerMichael Pavone <pavone@retrodev.com>2015-11-13 19:15:37 -0800
commit802454482c2843234a19a06f6acce360e0be3d60 (patch)
tree5b64111a903c93c75789390121965c055da45dd9 /m68k_core.c
parent3834192b16663bb4bf5098df5b7a053e9c9dd086 (diff)
It is now possible to switch back and forth between the menu ROM and the game
Diffstat (limited to 'm68k_core.c')
-rw-r--r--m68k_core.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/m68k_core.c b/m68k_core.c
index 02463c9..877327e 100644
--- a/m68k_core.c
+++ b/m68k_core.c
@@ -983,6 +983,16 @@ void start_68k_context(m68k_context * context, uint32_t address)
{
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);
}