summaryrefslogtreecommitdiff
path: root/blastem.c
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2015-06-22 22:00:44 -0700
committerMichael Pavone <pavone@retrodev.com>2015-06-22 22:00:44 -0700
commit4dcb86c4023fef4e0c0d8e66ee1fb345d2537a47 (patch)
treedf8b57952d44521b2536c9422d4245652470e756 /blastem.c
parent62f46efe85292831385d27ee80f1220e661cc982 (diff)
Minor cleanup in init_run_cpu
Diffstat (limited to 'blastem.c')
-rw-r--r--blastem.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/blastem.c b/blastem.c
index 4c1af0d..c3d1bd4 100644
--- a/blastem.c
+++ b/blastem.c
@@ -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);