From cce5ce373d10b3987dffc891f567b1a04f8de411 Mon Sep 17 00:00:00 2001 From: arbee Date: Sat, 24 Jul 2021 09:13:56 -0400 Subject: cd.cpp: Fix regression booting SGI Indy from CD-ROM [sneakywumpus, R. Belmont] --- src/devices/bus/nscsi/cd.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/devices/bus/nscsi/cd.cpp b/src/devices/bus/nscsi/cd.cpp index 76ba51dc380..170c5334561 100644 --- a/src/devices/bus/nscsi/cd.cpp +++ b/src/devices/bus/nscsi/cd.cpp @@ -430,7 +430,8 @@ void nscsi_cdrom_device::scsi_command() }; LOG("Apple special MODE SENSE page\n"); - memcpy(scsi_cmdbuf, apple_magic, 0x24); + scsi_cmdbuf[pos++] = 0x30; // PS, page id + memcpy(&scsi_cmdbuf[pos], apple_magic, 0x24); pos += 0x24; } break; -- cgit v1.2.3