Previous 199869 Revisions Next

r20108 Sunday 6th January, 2013 at 15:15:05 UTC by O. Galibert
upd765: Be verbose about sector IDs when formatting a track [O. Galibert]
[src/emu/machine]upd765.c

trunk/src/emu/machine/upd765.c
r20107r20108
960960            else if(cur_live.byte_counter < 16) {
961961               cur_live.crc = 0xcdb4;
962962               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)
966971               live_write_mfm(cur_live.crc >> 8);
967972            else if(cur_live.byte_counter < 44)
968973               live_write_mfm(0x4e);
r20107r20108
991996            else if(cur_live.byte_counter < 7) {
992997               cur_live.crc = 0xffff;
993998               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)
9971007               live_write_fm(cur_live.crc >> 8);
9981008            else if(cur_live.byte_counter < 24)
9991009               live_write_fm(0xff);

Previous 199869 Revisions Next


© 1997-2024 The MAME Team