diff options
author | Michael Pavone <pavone@retrodev.com> | 2015-06-22 22:00:44 -0700 |
---|---|---|
committer | Michael Pavone <pavone@retrodev.com> | 2015-06-22 22:00:44 -0700 |
commit | 4dcb86c4023fef4e0c0d8e66ee1fb345d2537a47 (patch) | |
tree | df8b57952d44521b2536c9422d4245652470e756 /blastem.c | |
parent | 62f46efe85292831385d27ee80f1220e661cc982 (diff) |
Minor cleanup in init_run_cpu
Diffstat (limited to 'blastem.c')
-rw-r--r-- | blastem.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -1039,9 +1039,7 @@ void init_run_cpu(genesis_context * gen, FILE * address_log, char * statefile, u //save RAM/map context->mem_pointers[2] = initial_mapped; context->mem_pointers[3] = (uint16_t *)gen->save_ram; - uint32_t address; - address = cart[2] << 16 | cart[3]; - translate_m68k_stream(address, context); + if (statefile) { uint32_t pc = load_gst(gen, statefile); if (!pc) { @@ -1056,6 +1054,7 @@ void init_run_cpu(genesis_context * gen, FILE * address_log, char * statefile, u start_68k_context(context, pc); } else { if (debugger) { + uint32_t address = cart[2] << 16 | cart[3]; insert_breakpoint(context, address, debugger); } m68k_reset(context); |