summaryrefslogtreecommitdiff
path: root/trans.c
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2020-06-13 00:37:22 -0700
committerMichael Pavone <pavone@retrodev.com>2020-06-13 00:37:22 -0700
commitebca48ed21ecee3f76644d740f49074b72a52955 (patch)
tree5e5f389c1ca3ed9529d4c57d251340b0218d6a40 /trans.c
parentfb293afbcf0252107b51ca66f89796c7fa20e02a (diff)
Somewhat buggy implementations of shift instructions in new 68K core
Diffstat (limited to 'trans.c')
-rw-r--r--trans.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/trans.c b/trans.c
index 67dd681..a3a4839 100644
--- a/trans.c
+++ b/trans.c
@@ -40,7 +40,11 @@ m68k_context * sync_components(m68k_context * context, uint32_t address)
m68k_context *reset_handler(m68k_context *context)
{
m68k_print_regs(context);
+#ifdef NEW_CORE
+ printf("cycles: %d\n", context->cycles);
+#else
printf("cycles: %d\n", context->current_cycle);
+#endif
exit(0);
//unreachable
return context;
@@ -82,8 +86,10 @@ int main(int argc, char ** argv)
m68k_context * context = init_68k_context(&opts, reset_handler);
context->mem_pointers[0] = memmap[0].buffer;
context->mem_pointers[1] = memmap[1].buffer;
+#ifdef NEW_CORE
+ context->cycles = 40;
+#else
context->current_cycle = 40;
-#ifndef NEW_CORE
context->target_cycle = context->sync_cycle = 8000;
#endif
m68k_reset(context);