From 6c65c7f8687e1d475d9bb8e0ca89cb78eda1a4c7 Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Wed, 7 Mar 2012 07:34:10 +0000 Subject: [PATCH] Sync with MESS (no whatsnew) --- src/emu/machine/nscsi_hd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/emu/machine/nscsi_hd.c b/src/emu/machine/nscsi_hd.c index fb68b009176..911c68edf0a 100644 --- a/src/emu/machine/nscsi_hd.c +++ b/src/emu/machine/nscsi_hd.c @@ -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()); }