mirror of
https://github.com/holub/mame
synced 2025-04-22 08:22:15 +03:00
cd.cpp: Macs now can see and boot from CD-ROM. [R. Belmont, Al Kossow]
This commit is contained in:
parent
69365788dd
commit
32151b1f0c
@ -420,6 +420,21 @@ void nscsi_cdrom_device::scsi_command()
|
||||
scsi_cmdbuf[pos++] = 0x00; // Reserved
|
||||
break;
|
||||
|
||||
case 0x30: // magic Apple page
|
||||
{
|
||||
static const u8 apple_magic[0x24] =
|
||||
{
|
||||
0x23, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x30, 0x16, 0x41, 0x50,
|
||||
0x50, 0x4C, 0x45, 0x20, 0x43, 0x4F, 0x4D, 0x50, 0x55, 0x54, 0x45, 0x52, 0x2C, 0x20, 0x49, 0x4E,
|
||||
0x43, 0x20, 0x20, 0x20
|
||||
};
|
||||
|
||||
LOG("Apple special MODE SENSE page\n");
|
||||
memcpy(scsi_cmdbuf, apple_magic, 0x24);
|
||||
pos += 0x24;
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
if (page != 0x3f) {
|
||||
LOG("mode sense page %02x unhandled\n", p);
|
||||
|
Loading…
Reference in New Issue
Block a user