comparison 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
comparison
equal deleted inserted replaced
696:0b2242bbc84a 697:7f96bd1cb1be
307 if (!interp) { 307 if (!interp) {
308 check_cycles_int(&opts->gen, address); 308 check_cycles_int(&opts->gen, address);
309 if (context->breakpoint_flags[address / sizeof(uint8_t)] & (1 << (address % sizeof(uint8_t)))) { 309 if (context->breakpoint_flags[address / sizeof(uint8_t)] & (1 << (address % sizeof(uint8_t)))) {
310 zbreakpoint_patch(context, address, start); 310 zbreakpoint_patch(context, address, start);
311 } 311 }
312 //log_address(&opts->gen, address, "Z80: %X @ %d\n");
312 } 313 }
313 switch(inst->op) 314 switch(inst->op)
314 { 315 {
315 case Z80_LD: 316 case Z80_LD:
316 size = z80_size(inst); 317 size = z80_size(inst);
2291 } 2292 }
2292 } 2293 }
2293 2294
2294 void z80_assert_busreq(z80_context * context, uint32_t cycle) 2295 void z80_assert_busreq(z80_context * context, uint32_t cycle)
2295 { 2296 {
2297 printf("bus requested at %d\n", cycle);
2296 z80_run(context, cycle); 2298 z80_run(context, cycle);
2299 printf("asserted busreq at %d\n", context->current_cycle);
2297 context->busreq = 1; 2300 context->busreq = 1;
2298 } 2301 }
2299 2302
2300 void z80_clear_busreq(z80_context * context, uint32_t cycle) 2303 void z80_clear_busreq(z80_context * context, uint32_t cycle)
2301 { 2304 {