summaryrefslogtreecommitdiff
path: root/blastem.c
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2015-11-08 15:51:57 -0800
committerMichael Pavone <pavone@retrodev.com>2015-11-08 15:51:57 -0800
commitc125d82e2076aad6d24062212c55e5db834cd90c (patch)
treed7dde6fdb87a935ae431517da1e609b1b9e7506b /blastem.c
parente4c347d394fc7ee86e8c7bb6d10029ad7157a6d5 (diff)
Initial work for allowing loading a ROM from menu
Diffstat (limited to 'blastem.c')
-rw-r--r--blastem.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/blastem.c b/blastem.c
index 55a22ab..c1208b4 100644
--- a/blastem.c
+++ b/blastem.c
@@ -171,6 +171,9 @@ void adjust_int_cycle(m68k_context * context, vdp_context * v_context)
}*/
context->target_cycle = context->int_cycle < context->sync_cycle ? context->int_cycle : context->sync_cycle;
+ if (context->should_return) {
+ context->target_cycle = context->current_cycle;
+ }
/*printf("Cyc: %d, Trgt: %d, Int Cyc: %d, Int: %d, Mask: %X, V: %d, H: %d, HICount: %d, HReg: %d, Line: %d\n",
context->current_cycle, context->target_cycle, context->int_cycle, context->int_num, (context->status & 0x7),
v_context->regs[REG_MODE_2] & 0x20, v_context->regs[REG_MODE_1] & 0x10, v_context->hint_counter, v_context->regs[REG_HINT], v_context->cycles / MCLKS_LINE);*/
@@ -1016,7 +1019,7 @@ int main(int argc, char ** argv)
//Temporary hack until UI is in place
if (!(rom_size = load_rom("/mnt/sdcard/rom.bin"))) {
fatal_error("Failed to open /mnt/sdcard/rom.bin for reading");
-
+
}
romfname = "/mnt/sdcard/rom.bin";
loaded = 1;