From b3e40bd29176e1c4cf53f8542628e48e1eb5dcb0 Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Mon, 11 May 2015 00:28:47 -0700 Subject: Sync fixes and logging to fix more sync issues --- z80_to_x86.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'z80_to_x86.c') diff --git a/z80_to_x86.c b/z80_to_x86.c index fab31da..6b498f5 100644 --- a/z80_to_x86.c +++ b/z80_to_x86.c @@ -309,6 +309,7 @@ void translate_z80inst(z80inst * inst, z80_context * context, uint16_t address, 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_clear_reset(z80_context * context, uint32_t cycle) 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; } -- cgit v1.2.3