mirror of
https://github.com/holub/mame
synced 2025-05-24 23:05:32 +03:00
Sync with MESS (no whatsnew)
This commit is contained in:
parent
22ab1ec1ef
commit
6c65c7f868
@ -25,6 +25,7 @@ void nscsi_harddisk_device::device_reset()
|
|||||||
const hard_disk_info *hdinfo = hard_disk_get_info(harddisk);
|
const hard_disk_info *hdinfo = hard_disk_get_info(harddisk);
|
||||||
bytes_per_sector = hdinfo->sectorbytes;
|
bytes_per_sector = hdinfo->sectorbytes;
|
||||||
}
|
}
|
||||||
|
cur_lba = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
harddisk_interface nscsi_harddisk_device::hd_intf = { 0, 0 };
|
harddisk_interface nscsi_harddisk_device::hd_intf = { 0, 0 };
|
||||||
@ -63,8 +64,7 @@ void nscsi_harddisk_device::scsi_put_data(int id, int pos, UINT8 data)
|
|||||||
int offset = pos % bytes_per_sector;
|
int offset = pos % bytes_per_sector;
|
||||||
block[offset] = data;
|
block[offset] = data;
|
||||||
int clba = lba + pos / bytes_per_sector;
|
int clba = lba + pos / bytes_per_sector;
|
||||||
// logerror("%s: %d.%03d %02x\n", tag(), clba, offset, data);
|
if(offset == bytes_per_sector-1) {
|
||||||
if(pos == bytes_per_sector-1) {
|
|
||||||
if(!hard_disk_write(harddisk, clba, block))
|
if(!hard_disk_write(harddisk, clba, block))
|
||||||
logerror("%s: HD WRITE ERROR !\n", tag());
|
logerror("%s: HD WRITE ERROR !\n", tag());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user