mirror of
https://github.com/holub/mame
synced 2025-06-06 21:03:47 +03:00
s1410: Fix sense command and bytes per sector in read/write buffer commands. [Curt Coder]
This commit is contained in:
parent
1d726e6430
commit
ca38c078c6
@ -39,7 +39,6 @@ void nscsi_s1410_device::scsi_command()
|
||||
case SC_TEST_UNIT_READY:
|
||||
case SC_REZERO:
|
||||
case SC_FORMAT_UNIT: // TODO does not support starting LBA
|
||||
case SC_REQUEST_SENSE:
|
||||
case SC_REASSIGN_BLOCKS:
|
||||
case SC_READ:
|
||||
case SC_WRITE:
|
||||
@ -51,6 +50,11 @@ void nscsi_s1410_device::scsi_command()
|
||||
}
|
||||
break;
|
||||
|
||||
case SC_REQUEST_SENSE:
|
||||
scsi_data_in(SBUF_SENSE, 4);
|
||||
scsi_status_complete(SS_GOOD);
|
||||
break;
|
||||
|
||||
case SC_FORMAT_TRACK: {
|
||||
if (scsi_cmdbuf[1] >> 5) {
|
||||
scsi_status_complete(SS_NOT_READY);
|
||||
@ -89,12 +93,12 @@ void nscsi_s1410_device::scsi_command()
|
||||
break;
|
||||
|
||||
case SC_WRITE_SECTOR_BUFFER:
|
||||
scsi_data_out(2, 512);
|
||||
scsi_data_out(2, bytes_per_sector);
|
||||
scsi_status_complete(SS_GOOD);
|
||||
break;
|
||||
|
||||
case SC_READ_SECTOR_BUFFER:
|
||||
scsi_data_in(2, 512);
|
||||
scsi_data_in(2, bytes_per_sector);
|
||||
scsi_status_complete(SS_GOOD);
|
||||
break;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user