From 9bcad95e596418cfa412792e0657060ae82439c9 Mon Sep 17 00:00:00 2001 From: arbee Date: Thu, 28 Mar 2019 23:21:02 -0400 Subject: [PATCH] nscsi_cd: support mode page 0x01, allows Apple II SCSI Card to access CD-ROMs [R. Belmont] --- src/devices/machine/nscsi_cd.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/devices/machine/nscsi_cd.cpp b/src/devices/machine/nscsi_cd.cpp index 0446c600e9f..b58a179161a 100644 --- a/src/devices/machine/nscsi_cd.cpp +++ b/src/devices/machine/nscsi_cd.cpp @@ -378,6 +378,22 @@ void nscsi_cdrom_device::scsi_command() scsi_cmdbuf[pos++] = 0x00; // Double meh break; + case 0x01: // Read-write error recovery + scsi_cmdbuf[pos++] = 0x01; // PS, page id + scsi_cmdbuf[pos++] = 0x0a; // Page length + scsi_cmdbuf[pos++] = 0x01; + scsi_cmdbuf[pos++] = 0x01; + scsi_cmdbuf[pos++] = 0x00; + scsi_cmdbuf[pos++] = 0x00; + scsi_cmdbuf[pos++] = 0x00; + scsi_cmdbuf[pos++] = 0x00; + scsi_cmdbuf[pos++] = 0x00; + scsi_cmdbuf[pos++] = 0x00; + scsi_cmdbuf[pos++] = 0x00; + scsi_cmdbuf[pos++] = 0x00; + scsi_cmdbuf[pos++] = 0x00; + break; + case 0x02: // Disconnect/reconnect control parameters (guessed) scsi_cmdbuf[pos++] = 0x82; // PS, page id scsi_cmdbuf[pos++] = 0x0e; // Page length