summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author arbee <rb6502@users.noreply.github.com>2021-07-24 09:13:56 -0400
committer arbee <rb6502@users.noreply.github.com>2021-07-24 09:13:56 -0400
commitcce5ce373d10b3987dffc891f567b1a04f8de411 (patch)
tree78e87c21d8547d5c0a3e1892d8543908ff98962e
parent4b59cf4a2eb3cd4babdf6eed14268e6a733faea7 (diff)
cd.cpp: Fix regression booting SGI Indy from CD-ROM [sneakywumpus, R. Belmont]
-rw-r--r--src/devices/bus/nscsi/cd.cpp3
1 files changed, 2 insertions, 1 deletions
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;