mirror of
https://github.com/holub/mame
synced 2025-06-03 11:26:56 +03:00
Fix D9060 format. Reads greater than one sector were broken when using bit banging. [smf]
This commit is contained in:
parent
f4d936300d
commit
08e2a2ba35
@ -372,12 +372,12 @@ void scsihle_device::scsi_in( UINT32 data, UINT32 mask )
|
||||
{
|
||||
// check to see if we have reached the end of the block buffer
|
||||
// and that there is more data to read from the scsi disk
|
||||
if(data_idx == m_sector_bytes)
|
||||
if(data_idx == m_sector_bytes && bytes_left > 0)
|
||||
{
|
||||
scsibus_read_data();
|
||||
scsi_out_req_delay( 1 );
|
||||
}
|
||||
|
||||
if(data_idx == data_last && bytes_left == 0)
|
||||
else if(data_idx == data_last && bytes_left == 0)
|
||||
{
|
||||
scsi_change_phase(SCSI_PHASE_STATUS);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user