trunk/src/emu/cpu/m6502/m6502.c
| r243811 | r243812 | |
| 409 | 409 | inst_state = IR | inst_state_base; |
| 410 | 410 | if(machine().debug_flags & DEBUG_FLAG_ENABLED) |
| 411 | 411 | debugger_instruction_hook(this, NPC); |
| 412 | if(1) { |
| 413 | UINT8 dx[3]; |
| 414 | dx[0] = mintf->read_decrypted(NPC); |
| 415 | dx[1] = mintf->read_decrypted(NPC+1); |
| 416 | dx[2] = mintf->read_decrypted(NPC+2); |
| 417 | char buf[256]; |
| 418 | disasm_disassemble(buf, NPC, dx, dx, 0); |
| 419 | logerror("%09d : %04x %s\n", 2*UINT32(total_cycles()), NPC, buf); |
| 420 | } |
| 412 | 421 | } |
| 413 | 422 | do_exec_full(); |
| 414 | 423 | } |
trunk/src/emu/machine/wozfdc.c
| r243811 | r243812 | |
| 414 | 414 | void wozfdc_device::lss_sync() |
| 415 | 415 | { |
| 416 | 416 | attotime tm = machine().time(); |
| 417 | | if(!predicted_lss.tm.is_never() && predicted_lss.tm <= tm) |
| 417 | if(false && (!predicted_lss.tm.is_never() && predicted_lss.tm <= tm)) |
| 418 | 418 | commit_predicted(); |
| 419 | 419 | |
| 420 | 420 | while(cur_lss.tm < tm) { |
| r243811 | r243812 | |
| 432 | 432 | |
| 433 | 433 | attotime next_flux = floppy ? floppy->get_next_transition(cur_lss.tm - attotime::from_usec(1)) : attotime::never; |
| 434 | 434 | |
| 435 | bool trace = limit != attotime::never; |
| 435 | 436 | if(limit == attotime::never) |
| 436 | 437 | limit = machine().time() + attotime::from_usec(50); |
| 438 | // trace = false; |
| 437 | 439 | |
| 438 | 440 | UINT64 cycles = cur_lss.cycles; |
| 439 | 441 | UINT64 cycles_limit = time_to_cycles(limit); |
| r243811 | r243812 | |
| 455 | 457 | if(cycles_next_trans > cycles_next_flux_down && cycles < cycles_next_flux_down) |
| 456 | 458 | cycles_next_trans = cycles_next_flux_down; |
| 457 | 459 | |
| 460 | char ebuf[32]; |
| 461 | if(cycles_next_flux == UINT64(-1)) |
| 462 | strcpy(ebuf, "-"); |
| 463 | else |
| 464 | sprintf(ebuf, "%09u", UINT32(cycles_next_flux)); |
| 465 | |
| 458 | 466 | while(cycles < cycles_next_trans) { |
| 459 | 467 | UINT8 opcode = m_rom_p6[address]; |
| 460 | | |
| 468 | if(trace) |
| 469 | logerror("%09u : %9s %02x %02x (%02x)\n", UINT32(cycles), ebuf, address, opcode, cur_lss.data_reg); |
| 461 | 470 | if(mode_write) { |
| 462 | 471 | if((write_line_active && !(address & 0x80)) || |
| 463 | 472 | (!write_line_active && (address & 0x80))) { |