diff trans.c @ 1991:7d4df6b74263

Somewhat buggy implementations of shift instructions in new 68K core
author Michael Pavone <pavone@retrodev.com>
date Sat, 13 Jun 2020 00:37:22 -0700
parents 57ae42c3ab45
children 638eb2d25696 339eff5dc350
line wrap: on
line diff
--- a/trans.c	Fri Jun 12 23:54:22 2020 -0700
+++ b/trans.c	Sat Jun 13 00:37:22 2020 -0700
@@ -40,7 +40,11 @@
 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 @@
 	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);