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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
|
/**********************************************************************
North Star MICRO-DISK System MDS-A (Single Density) emulation
Copyright MESS Team.
Visit http://mamedev.org for licensing and usage restrictions.
**********************************************************************/
#include "s100_nsmdsa.h"
//**************************************************************************
// DEVICE DEFINITIONS
//**************************************************************************
const device_type S100_MDS_A = &device_creator<s100_mds_a_device>;
//-------------------------------------------------
// ROM( mds_a )
//-------------------------------------------------
ROM_START( mds_a )
ROM_REGION( 0x100, "psel", 0 )
ROM_LOAD( "psel.7g", 0x000, 0x100, NO_DUMP ) // 74S287
ROM_REGION( 0x100, "pgm", 0 )
ROM_LOAD( "pgml.3f", 0x000, 0x100, NO_DUMP ) // 74S287
ROM_LOAD( "pgmr.3e", 0x000, 0x100, NO_DUMP ) // 74S287
ROM_LOAD( "horizon.bin", 0x000, 0x100, CRC(754e53e5) SHA1(875e42942d639b972252b87d86c3dc2133304967) BAD_DUMP )
ROM_END
//-------------------------------------------------
// rom_region - device-specific ROM region
//-------------------------------------------------
const rom_entry *s100_mds_a_device::device_rom_region() const
{
return ROM_NAME( mds_a );
}
//-------------------------------------------------
// SLOT_INTERFACE( mds_a_floppies )
//-------------------------------------------------
static SLOT_INTERFACE_START( mds_a_floppies )
SLOT_INTERFACE( "525sd", FLOPPY_525_SD ) // Shugart SA-400
SLOT_INTERFACE_END
//-------------------------------------------------
// MACHINE_CONFIG_FRAGMENT( mds_a )
//-------------------------------------------------
static MACHINE_CONFIG_FRAGMENT( mds_a )
MCFG_FLOPPY_DRIVE_ADD("floppy0", mds_a_floppies, "525sd", floppy_image_device::default_floppy_formats)
MCFG_FLOPPY_DRIVE_ADD("floppy1", mds_a_floppies, "525sd", floppy_image_device::default_floppy_formats)
MACHINE_CONFIG_END
//-------------------------------------------------
// machine_config_additions - device-specific
// machine configurations
//-------------------------------------------------
machine_config_constructor s100_mds_a_device::device_mconfig_additions() const
{
return MACHINE_CONFIG_NAME( mds_a );
}
//**************************************************************************
// LIVE DEVICE
//**************************************************************************
//-------------------------------------------------
// s100_mds_a_device - constructor
//-------------------------------------------------
s100_mds_a_device::s100_mds_a_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
device_t(mconfig, S100_MDS_A, "MDS-A", tag, owner, clock, "nsmdsa", __FILE__),
device_s100_card_interface(mconfig, *this),
m_floppy0(*this, "floppy0"),
m_floppy1(*this, "floppy1"),
m_psel_rom(*this, "psel"),
m_pgm_rom(*this, "pgm")
{
}
//-------------------------------------------------
// device_start - device-specific startup
//-------------------------------------------------
void s100_mds_a_device::device_start()
{
}
//-------------------------------------------------
// device_reset - device-specific reset
//-------------------------------------------------
void s100_mds_a_device::device_reset()
{
}
//-------------------------------------------------
// s100_smemr_r - memory read
//-------------------------------------------------
UINT8 s100_mds_a_device::s100_smemr_r(address_space &space, offs_t offset)
{
return 0;
}
|