Previous 199869 Revisions Next

r35300 Thursday 26th February, 2015 at 15:11:30 UTC by Olivier Galibert
wozlog
[src/emu/cpu/m6502]m6502.c
[src/emu/machine]wozfdc.c

trunk/src/emu/cpu/m6502/m6502.c
r243811r243812
409409         inst_state = IR | inst_state_base;
410410         if(machine().debug_flags & DEBUG_FLAG_ENABLED)
411411            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         }
412421      }
413422      do_exec_full();
414423   }
trunk/src/emu/machine/wozfdc.c
r243811r243812
414414void wozfdc_device::lss_sync()
415415{
416416   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))
418418      commit_predicted();
419419
420420   while(cur_lss.tm < tm) {
r243811r243812
432432
433433   attotime next_flux = floppy ? floppy->get_next_transition(cur_lss.tm - attotime::from_usec(1)) : attotime::never;
434434
435   bool trace = limit != attotime::never;
435436   if(limit == attotime::never)
436437      limit = machine().time() + attotime::from_usec(50);
438   //   trace = false;
437439
438440   UINT64 cycles = cur_lss.cycles;
439441   UINT64 cycles_limit = time_to_cycles(limit);
r243811r243812
455457      if(cycles_next_trans > cycles_next_flux_down && cycles < cycles_next_flux_down)
456458         cycles_next_trans = cycles_next_flux_down;
457459
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
458466      while(cycles < cycles_next_trans) {
459467         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);
461470         if(mode_write) {
462471            if((write_line_active && !(address & 0x80)) ||
463472               (!write_line_active && (address & 0x80))) {


Previous 199869 Revisions Next


© 1997-2024 The MAME Team