mirror of
https://github.com/holub/mame
synced 2025-05-24 14:56:21 +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);
|
||||
bytes_per_sector = hdinfo->sectorbytes;
|
||||
}
|
||||
cur_lba = -1;
|
||||
}
|
||||
|
||||
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;
|
||||
block[offset] = data;
|
||||
int clba = lba + pos / bytes_per_sector;
|
||||
// logerror("%s: %d.%03d %02x\n", tag(), clba, offset, data);
|
||||
if(pos == bytes_per_sector-1) {
|
||||
if(offset == bytes_per_sector-1) {
|
||||
if(!hard_disk_write(harddisk, clba, block))
|
||||
logerror("%s: HD WRITE ERROR !\n", tag());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user