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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
|
/**********************************************************************
MyAB Turbo-Kontroller disk controller emulation
Copyright MESS Team.
Visit http://mamedev.org for licensing and usage restrictions.
*********************************************************************/
#include "abc_turbo.h"
//**************************************************************************
// MACROS / CONSTANTS
//**************************************************************************
#define Z80_TAG "z80"
//**************************************************************************
// DEVICE DEFINITIONS
//**************************************************************************
const device_type TURBO_KONTROLLER = &device_creator<turbo_kontroller_device>;
//-------------------------------------------------
// ROM( turbo_kontroller )
//-------------------------------------------------
ROM_START( turbo_kontroller )
ROM_REGION( 0x1000, Z80_TAG, 0 )
ROM_SYSTEM_BIOS( 0, "525", "5\" 25-pin" )
ROMX_LOAD( "unidis5d.bin", 0x0000, 0x1000, CRC(569dd60c) SHA1(47b810bcb5a063ffb3034fd7138dc5e15d243676), ROM_BIOS(1) )
ROM_SYSTEM_BIOS( 1, "534", "5\" 34-pin" )
ROMX_LOAD( "unidiskh.bin", 0x0000, 0x1000, CRC(5079ad85) SHA1(42bb91318f13929c3a440de3fa1f0491a0b90863), ROM_BIOS(2) )
ROM_SYSTEM_BIOS( 2, "8", "8\"" )
ROMX_LOAD( "unidisk8.bin", 0x0000, 0x1000, CRC(d04e6a43) SHA1(8db504d46ff0355c72bd58fd536abeb17425c532), ROM_BIOS(3) )
ROM_END
//-------------------------------------------------
// rom_region - device-specific ROM region
//-------------------------------------------------
const rom_entry *turbo_kontroller_device::device_rom_region() const
{
return ROM_NAME( turbo_kontroller );
}
//-------------------------------------------------
// ADDRESS_MAP( turbo_kontroller_mem )
//-------------------------------------------------
static ADDRESS_MAP_START( turbo_kontroller_mem, AS_PROGRAM, 8, turbo_kontroller_device )
AM_RANGE(0x0000, 0x0fff) AM_ROM AM_REGION(Z80_TAG, 0)
ADDRESS_MAP_END
//-------------------------------------------------
// ADDRESS_MAP( turbo_kontroller_io )
//-------------------------------------------------
static ADDRESS_MAP_START( turbo_kontroller_io, AS_IO, 8, turbo_kontroller_device )
ADDRESS_MAP_END
//-------------------------------------------------
// z80_daisy_config daisy_chain
//-------------------------------------------------
static const z80_daisy_config daisy_chain[] =
{
{ NULL }
};
//-------------------------------------------------
// floppy_interface unidisk_floppy_interface
//-------------------------------------------------
static const floppy_interface unidisk_floppy_interface =
{
DEVCB_NULL,
DEVCB_NULL,
DEVCB_NULL,
DEVCB_NULL,
DEVCB_NULL,
FLOPPY_STANDARD_5_25_DSDD,
LEGACY_FLOPPY_OPTIONS_NAME(default),
"floppy_5_25",
NULL
};
//-------------------------------------------------
// MACHINE_DRIVER( turbo_kontroller )
//-------------------------------------------------
static MACHINE_CONFIG_FRAGMENT( turbo_kontroller )
MCFG_CPU_ADD(Z80_TAG, Z80, 4000000)
MCFG_CPU_PROGRAM_MAP(turbo_kontroller_mem)
MCFG_CPU_IO_MAP(turbo_kontroller_io)
MCFG_CPU_CONFIG(daisy_chain)
MCFG_LEGACY_FLOPPY_2_DRIVES_ADD(unidisk_floppy_interface)
MACHINE_CONFIG_END
//-------------------------------------------------
// machine_config_additions - device-specific
// machine configurations
//-------------------------------------------------
machine_config_constructor turbo_kontroller_device::device_mconfig_additions() const
{
return MACHINE_CONFIG_NAME( turbo_kontroller );
}
//**************************************************************************
// LIVE DEVICE
//**************************************************************************
//-------------------------------------------------
// turbo_kontroller_device - constructor
//-------------------------------------------------
turbo_kontroller_device::turbo_kontroller_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, TURBO_KONTROLLER, "Turbo-Kontroller", tag, owner, clock),
device_abcbus_card_interface(mconfig, *this),
m_maincpu(*this, Z80_TAG),
m_image0(*this, FLOPPY_0),
m_image1(*this, FLOPPY_1)
{
}
//-------------------------------------------------
// device_start - device-specific startup
//-------------------------------------------------
void turbo_kontroller_device::device_start()
{
}
//-------------------------------------------------
// device_reset - device-specific reset
//-------------------------------------------------
void turbo_kontroller_device::device_reset()
{
}
//**************************************************************************
// ABC BUS INTERFACE
//**************************************************************************
//-------------------------------------------------
// abcbus_cs -
//-------------------------------------------------
void turbo_kontroller_device::abcbus_cs(UINT8 data)
{
}
|