1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
// license:BSD-3-Clause
// copyright-holders:smf
#include "emu.h"
#include "cdu76s.h"
void sony_cdu76s_device::ExecCommand()
{
switch ( command[0] )
{
case 0x12: // INQUIRY
logerror("CDU76S: INQUIRY\n");
m_phase = SCSI_PHASE_DATAIN;
m_status_code = SCSI_STATUS_CODE_GOOD;
m_transfer_length = SCSILengthFromUINT8( &command[ 4 ] );
break;
}
}
void sony_cdu76s_device::ReadData( uint8_t *data, int dataLength )
{
switch ( command[0] )
{
case 0x12: // INQUIRY
memset( data, 0, dataLength );
data[0] = 0x05; // device is present, device is CD/DVD (MMC-3)
data[1] = 0x80; // media is removable
data[2] = 0x05; // device complies with SPC-3 standard
data[3] = 0x02; // response data format = SPC-3 standard
// some Konami games freak out if this isn't "Sony", so we'll lie
// this is the actual drive on my Nagano '98 board
strcpy((char *)&data[8], "Sony");
strcpy((char *)&data[16], "CDU-76S");
strcpy((char *)&data[32], "1.0");
break;
default:
scsicd_device::ReadData( data, dataLength );
break;
}
}
// device type definition
DEFINE_DEVICE_TYPE(CDU76S, sony_cdu76s_device, "cdu76s", "Sony CDU-76S")
sony_cdu76s_device::sony_cdu76s_device(const machine_config &mconfig, const char *tag, device_t *owner, const XTAL &clock) :
scsicd_device(mconfig, CDU76S, tag, owner, clock)
{
}
ROM_START(cdu76s)
ROM_REGION(0x10000, "eprom", 0)
ROM_DEFAULT_BIOS("1.1c")
ROM_SYSTEM_BIOS( 0, "1.1c", "CDU76S firmware 1.1c" )
ROMX_LOAD("76s.1.1c.ic206", 0x00000, 0x10000, CRC(8a233f19) SHA1(5f3c3f1ec181cb7f18daea5c8c592f6910aac3b2), ROM_BIOS(0))
ROM_SYSTEM_BIOS( 1, "1.1a", "CDU76S firmware 1.1a" )
ROMX_LOAD("76s.1.1a.ic206", 0x00000, 0x10000, CRC(1df044f9) SHA1(8d1f6ccd6fb5e04b987b9aa21e602a21df7505a4), ROM_BIOS(1)) // 95.06.01
ROM_END
const tiny_rom_entry *sony_cdu76s_device::device_rom_region() const
{
return ROM_NAME(cdu76s);
}
|