trunk/src/emu/machine/upd765.c
| r20107 | r20108 | |
| 960 | 960 | else if(cur_live.byte_counter < 16) { |
| 961 | 961 | cur_live.crc = 0xcdb4; |
| 962 | 962 | live_write_mfm(0xfe); |
| 963 | | } else if(cur_live.byte_counter < 20) |
| 964 | | live_write_mfm(fifo_pop(true)); |
| 965 | | else if(cur_live.byte_counter < 22) |
| 963 | } else if(cur_live.byte_counter < 20) { |
| 964 | UINT8 byte = fifo_pop(true); |
| 965 | command[12+cur_live.byte_counter-16] = byte; |
| 966 | live_write_mfm(byte); |
| 967 | if(cur_live.byte_counter == 19) |
| 968 | logerror("%s: formatting sector %02x %02x %02x %02x\n", |
| 969 | tag(), command[12], command[13], command[14], command[15]); |
| 970 | } else if(cur_live.byte_counter < 22) |
| 966 | 971 | live_write_mfm(cur_live.crc >> 8); |
| 967 | 972 | else if(cur_live.byte_counter < 44) |
| 968 | 973 | live_write_mfm(0x4e); |
| r20107 | r20108 | |
| 991 | 996 | else if(cur_live.byte_counter < 7) { |
| 992 | 997 | cur_live.crc = 0xffff; |
| 993 | 998 | live_write_raw(0xf57e); |
| 994 | | } else if(cur_live.byte_counter < 11) |
| 995 | | live_write_fm(fifo_pop(true)); |
| 996 | | else if(cur_live.byte_counter < 13) |
| 999 | } else if(cur_live.byte_counter < 11) { |
| 1000 | UINT8 byte = fifo_pop(true); |
| 1001 | command[12+cur_live.byte_counter-7] = byte; |
| 1002 | live_write_fm(byte); |
| 1003 | if(cur_live.byte_counter == 10) |
| 1004 | logerror("%s: formatting sector %02x %02x %02x %02x\n", |
| 1005 | tag(), command[12], command[13], command[14], command[15]); |
| 1006 | } else if(cur_live.byte_counter < 13) |
| 997 | 1007 | live_write_fm(cur_live.crc >> 8); |
| 998 | 1008 | else if(cur_live.byte_counter < 24) |
| 999 | 1009 | live_write_fm(0xff); |