trunk/src/emu/machine/wd_fdc.c
| r19186 | r19187 | |
| 582 | 582 | floppy->ss_w(command & 0x02); |
| 583 | 583 | sub_state = motor_control ? SPINUP : SPINUP_DONE; |
| 584 | 584 | status_type_1 = false; |
| 585 | |
| 586 | format_last_byte = 0; |
| 587 | format_last_byte_count = 0; |
| 588 | format_description_string = ""; |
| 589 | |
| 585 | 590 | write_track_continue(); |
| 586 | 591 | } |
| 587 | 592 | |
| r19186 | r19187 | |
| 641 | 646 | return; |
| 642 | 647 | |
| 643 | 648 | case TRACK_DONE: |
| 649 | if(format_last_byte_count) { |
| 650 | char buf[32]; |
| 651 | if(format_last_byte_count > 1) |
| 652 | sprintf(buf, "%dx%02x", format_last_byte_count, format_last_byte); |
| 653 | else |
| 654 | sprintf(buf, "%02x", format_last_byte); |
| 655 | format_description_string += buf; |
| 656 | } |
| 657 | logerror("wd1772: track description %s\n", format_description_string.cstr()); |
| 644 | 658 | command_end(); |
| 645 | 659 | return; |
| 646 | 660 | |
| r19186 | r19187 | |
| 1521 | 1535 | status |= S_LOST; |
| 1522 | 1536 | data = 0; |
| 1523 | 1537 | } |
| 1538 | if(data != format_last_byte) { |
| 1539 | if(format_last_byte_count) { |
| 1540 | char buf[32]; |
| 1541 | if(format_last_byte_count > 1) |
| 1542 | sprintf(buf, "%dx%02x ", format_last_byte_count, format_last_byte); |
| 1543 | else |
| 1544 | sprintf(buf, "%02x ", format_last_byte); |
| 1545 | format_description_string += buf; |
| 1546 | } |
| 1547 | format_last_byte = data; |
| 1548 | format_last_byte_count = 1; |
| 1549 | } else |
| 1550 | format_last_byte_count++; |
| 1524 | 1551 | |
| 1525 | 1552 | switch(data) { |
| 1526 | 1553 | case 0xf5: |