wd_fdc: Hopefully fix reading sectors with DDAM [lowen, O. Galibert]

This commit is contained in:
Olivier Galibert 2014-09-23 17:41:43 +00:00
parent 63bad604f2
commit 76ef187c27

View File

@ -1678,14 +1678,16 @@ void wd_fdc_t::live_run(attotime limit)
} }
break; break;
} }
if((cur_live.data_reg & 0xfe) != 0xfa && (cur_live.data_reg & 0xfe) != 0xfc) { if((cur_live.data_reg & 0xfe) != 0xfa && (cur_live.data_reg & 0xfe) != 0xf8) {
live_delay(SEARCH_ADDRESS_MARK_DATA_FAILED); live_delay(SEARCH_ADDRESS_MARK_DATA_FAILED);
return; return;
} }
cur_live.bit_counter = 0; cur_live.bit_counter = 0;
cur_live.state = READ_SECTOR_DATA; if((cur_live.data_reg & 0xfe) != 0xf8)
break; status |= S_DDM;
live_delay(READ_SECTOR_DATA);
return;
} }
case SEARCH_ADDRESS_MARK_DATA_FAILED: case SEARCH_ADDRESS_MARK_DATA_FAILED: