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
|
// license:BSD-3-Clause
// copyright-holders:Curt Coder
/**********************************************************************
North Star MICRO-DISK System MDS-A-D (Double Density) emulation
**********************************************************************/
#include "emu.h"
#include "nsmdsad.h"
//**************************************************************************
// DEVICE DEFINITIONS
//**************************************************************************
DEFINE_DEVICE_TYPE(S100_MDS_AD, s100_mds_ad_device, "s100_nsmdsad", "North Star MDS-A-D")
//-------------------------------------------------
// ROM( mds_ad )
//-------------------------------------------------
ROM_START( mds_ad )
ROM_REGION( 0x100, "dsel", 0 )
ROM_LOAD( "dsel.11c", 0x000, 0x100, NO_DUMP ) // 82S129
ROM_REGION( 0x100, "dpgm", 0 )
ROM_LOAD( "dpgm.9d", 0x000, 0x100, CRC(7aafa134) SHA1(bf1552c4818f30473798af4f54e65e1957e0db48) )
ROM_REGION( 0x100, "dwe", 0 )
ROM_LOAD( "dwe.4c", 0x000, 0x100, NO_DUMP ) // 82S129
ROM_END
//-------------------------------------------------
// rom_region - device-specific ROM region
//-------------------------------------------------
const tiny_rom_entry *s100_mds_ad_device::device_rom_region() const
{
return ROM_NAME( mds_ad );
}
//-------------------------------------------------
// SLOT_INTERFACE( mds_ad_floppies )
//-------------------------------------------------
static void mds_ad_floppies(device_slot_interface &device)
{
device.option_add("525dd", FLOPPY_525_DD); // Shugart SA-400
}
//-------------------------------------------------
// device_add_mconfig - add device configuration
//-------------------------------------------------
void s100_mds_ad_device::device_add_mconfig(machine_config &config)
{
for (auto &floppy : m_floppy)
FLOPPY_CONNECTOR(config, floppy, mds_ad_floppies, "525dd", floppy_image_device::default_mfm_floppy_formats);
}
//**************************************************************************
// LIVE DEVICE
//**************************************************************************
//-------------------------------------------------
// s100_mds_ad_device - constructor
//-------------------------------------------------
s100_mds_ad_device::s100_mds_ad_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) :
device_t(mconfig, S100_MDS_AD, tag, owner, clock),
device_s100_card_interface(mconfig, *this),
m_floppy(*this, "floppy%u", 0U),
m_dsel_rom(*this, "dsel"),
m_dpgm_rom(*this, "dpgm"),
m_dwe_rom(*this, "dwe")
{
}
//-------------------------------------------------
// device_start - device-specific startup
//-------------------------------------------------
void s100_mds_ad_device::device_start()
{
}
//-------------------------------------------------
// device_reset - device-specific reset
//-------------------------------------------------
void s100_mds_ad_device::device_reset()
{
}
//-------------------------------------------------
// s100_smemr_r - memory read
//-------------------------------------------------
uint8_t s100_mds_ad_device::s100_smemr_r(offs_t offset)
{
return 0xff;
}
|