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
|
// license:BSD-3-Clause
// copyright-holders:Curt Coder
/**********************************************************************
Mator Systems SHARK Intelligent Winchester Disc Subsystem emulation
**********************************************************************/
#include "emu.h"
#include "shark.h"
#include "bus/rs232/rs232.h"
#include "cpu/i8085/i8085.h"
#include "imagedev/harddriv.h"
//**************************************************************************
// MACROS / CONSTANTS
//**************************************************************************
#define I8085_TAG "i8085"
#define RS232_TAG "rs232"
//**************************************************************************
// DEVICE DEFINITIONS
//**************************************************************************
DEFINE_DEVICE_TYPE(MSHARK, mshark_device, "mshark", "Mator SHARK")
//-------------------------------------------------
// ROM( mshark )
//-------------------------------------------------
ROM_START( mshark )
ROM_REGION( 0x5000, I8085_TAG, 0 )
ROM_LOAD( "pch488 3450 v22.1 @1", 0x0000, 0x1000, CRC(03bff9d7) SHA1(ac506df6509e1b2185a69f9f8f44b8b456aa9834) )
ROM_LOAD( "pch488 3450 v22.1 @2", 0x1000, 0x1000, CRC(c14fa5fe) SHA1(bcfd1dd65d692c76b90e6134b85f22c39c049430) )
ROM_LOAD( "pch488 3450 v22.1 @3", 0x2000, 0x1000, CRC(4dfaa482) SHA1(fe2c44bb650572616c8bdad6358032fe64b1e363) )
ROM_LOAD( "pch488 3450 v22.1 @4", 0x3000, 0x1000, CRC(aef665e9) SHA1(80a4c00b717100b4e22fa3704e34060fffce2bc3) )
ROM_LOAD( "pch488 3450 v22.1 @5", 0x4000, 0x1000, CRC(f30adf60) SHA1(96c15264d5a9b52e1d238921880c48a797a6da1e) )
ROM_REGION( 0x800, "micro", 0 ) // address decoder
ROM_LOAD( "micro p3450 v1.3", 0x000, 0x800, CRC(0e69202e) SHA1(3b384951ff54c4b45a3a778a88966d13e2c9d57a) )
ROM_END
//-------------------------------------------------
// rom_region - device-specific ROM region
//-------------------------------------------------
const tiny_rom_entry *mshark_device::device_rom_region() const
{
return ROM_NAME( mshark );
}
//-------------------------------------------------
// ADDRESS_MAP( mshark_mem )
//-------------------------------------------------
void mshark_device::mshark_mem(address_map &map)
{
map(0x0000, 0x4fff).rom().region(I8085_TAG, 0);
}
//-------------------------------------------------
// ADDRESS_MAP( mshark_io )
//-------------------------------------------------
void mshark_device::mshark_io(address_map &map)
{
}
//-------------------------------------------------
// device_add_mconfig - add device configuration
//-------------------------------------------------
void mshark_device::device_add_mconfig(machine_config &config)
{
// basic machine hardware
I8085A(config, m_maincpu, 1000000);
m_maincpu->set_addrmap(AS_PROGRAM, &mshark_device::mshark_mem);
m_maincpu->set_addrmap(AS_IO, &mshark_device::mshark_io);
// devices
HARDDISK(config, "harddisk1", 0);
RS232_PORT(config, RS232_TAG, default_rs232_devices, nullptr);
}
//-------------------------------------------------
// INPUT_PORTS( mshark )
//-------------------------------------------------
INPUT_PORTS_START( mshark )
INPUT_PORTS_END
//-------------------------------------------------
// input_ports - device-specific input ports
//-------------------------------------------------
ioport_constructor mshark_device::device_input_ports() const
{
return INPUT_PORTS_NAME( mshark );
}
//**************************************************************************
// LIVE DEVICE
//**************************************************************************
//-------------------------------------------------
// mshark_device - constructor
//-------------------------------------------------
mshark_device::mshark_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock)
: device_t(mconfig, MSHARK, tag, owner, clock)
, device_ieee488_interface(mconfig, *this)
, m_maincpu(*this, I8085_TAG)
{
}
//-------------------------------------------------
// device_start - device-specific startup
//-------------------------------------------------
void mshark_device::device_start()
{
}
|