diff z80_to_x86.c @ 697:7f96bd1cb1be

Sync fixes and logging to fix more sync issues
author Michael Pavone <pavone@retrodev.com>
date Mon, 11 May 2015 00:28:47 -0700
parents 7ed1dbb48f61
children 200ee73c7210
line wrap: on
line diff
--- a/z80_to_x86.c	Tue May 05 08:42:27 2015 -0700
+++ b/z80_to_x86.c	Mon May 11 00:28:47 2015 -0700
@@ -309,6 +309,7 @@
 		if (context->breakpoint_flags[address / sizeof(uint8_t)] & (1 << (address % sizeof(uint8_t)))) {
 			zbreakpoint_patch(context, address, start);
 		}
+		//log_address(&opts->gen, address, "Z80: %X @ %d\n");
 	}
 	switch(inst->op)
 	{
@@ -2293,7 +2294,9 @@
 
 void z80_assert_busreq(z80_context * context, uint32_t cycle)
 {
+	printf("bus requested at %d\n", cycle);
 	z80_run(context, cycle);
+	printf("asserted busreq at %d\n", context->current_cycle);
 	context->busreq = 1;
 		}