trunk/src/emu/machine/wozfdc.c
| r243696 | r243697 | |
| 431 | 431 | bool write_line_active = cur_lss.write_line_active; |
| 432 | 432 | |
| 433 | 433 | attotime next_flux = floppy ? floppy->get_next_transition(cur_lss.tm - attotime::from_usec(1)) : attotime::never; |
| 434 | | attotime next_flux_down = next_flux != attotime::never ? next_flux + attotime::from_usec(1) : attotime::never; |
| 435 | 434 | |
| 436 | 435 | if(limit == attotime::never) |
| 437 | 436 | limit = machine().time() + attotime::from_usec(50); |
| r243696 | r243697 | |
| 439 | 438 | UINT64 cycles = cur_lss.cycles; |
| 440 | 439 | UINT64 cycles_limit = time_to_cycles(limit); |
| 441 | 440 | UINT64 cycles_next_flux = next_flux != attotime::never ? time_to_cycles(next_flux) : UINT64(-1); |
| 442 | | UINT64 cycles_next_flux_down = next_flux_down != attotime::never ? time_to_cycles(next_flux_down) : UINT64(-1); |
| 441 | UINT64 cycles_next_flux_down = cycles_next_flux != UINT64(-1) ? cycles_next_flux+1 : UINT64(-1); |
| 443 | 442 | |
| 444 | 443 | UINT8 address = cur_lss.address; |
| 445 | 444 | UINT8 data_reg = cur_lss.data_reg; |
| r243696 | r243697 | |
| 499 | 498 | else if(cycles == cycles_next_flux_down) { |
| 500 | 499 | address |= 0x10; |
| 501 | 500 | next_flux = floppy ? floppy->get_next_transition(cycles_to_time(cycles)) : attotime::never; |
| 502 | | next_flux_down = next_flux != attotime::never ? next_flux + attotime::from_usec(1) : attotime::never; |
| 503 | 501 | cycles_next_flux = next_flux != attotime::never ? time_to_cycles(next_flux) : UINT64(-1); |
| 504 | | cycles_next_flux_down = next_flux_down != attotime::never ? time_to_cycles(next_flux_down) : UINT64(-1); |
| 502 | cycles_next_flux_down = cycles_next_flux != UINT64(-1) ? cycles_next_flux+1 : UINT64(-1); |
| 505 | 503 | } |
| 506 | 504 | } |
| 507 | 505 | |