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
|
// license:BSD-3-Clause
// copyright-holders:Curt Coder
/**********************************************************************
North Star MICRO-DISK System MDS-A (Single Density) emulation
**********************************************************************/
#include "emu.h"
#include "nsmdsa.h"
//**************************************************************************
// DEVICE DEFINITIONS
//**************************************************************************
DEFINE_DEVICE_TYPE(S100_MDS_A, s100_mds_a_device, "s100_nsmdsa", "North Star MDS-A")
//-------------------------------------------------
// 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 tiny_rom_entry *s100_mds_a_device::device_rom_region() const
{
return ROM_NAME( mds_a );
}
//-------------------------------------------------
// SLOT_INTERFACE( mds_a_floppies )
//-------------------------------------------------
static void mds_a_floppies(device_slot_interface &device)
{
device.option_add("525sd", FLOPPY_525_SD); // Shugart SA-400
}
//-------------------------------------------------
// device_add_mconfig - add device configuration
//-------------------------------------------------
void s100_mds_a_device::device_add_mconfig(machine_config &config)
{
for (auto &floppy : m_floppy)
FLOPPY_CONNECTOR(config, floppy, mds_a_floppies, "525sd", floppy_image_device::default_mfm_floppy_formats);
}
//**************************************************************************
// 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_t clock) :
device_t(mconfig, S100_MDS_A, tag, owner, clock),
device_s100_card_interface(mconfig, *this),
m_floppy(*this, "floppy%u", 0U),
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_t s100_mds_a_device::s100_smemr_r(offs_t offset)
{
return 0xff;
}
|