blob: c9a210bca9a5f4897a6f9d06ac23596e8cfaf927 (
plain) (
blame)
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
|
// license:BSD-3-Clause
// copyright-holders:Aaron Giles,Ernesto Corvi
/*************************************************************************
Driver for Midway Wolf-unit games.
**************************************************************************/
#include "machine/midwayic.h"
class midwunit_state : public midtunit_state
{
public:
midwunit_state(const machine_config &mconfig, device_type type, const char *tag)
: midtunit_state(mconfig, type, tag),
m_midway_serial_pic(*this, "serial_pic"),
m_nvram(*this, "nvram"),
m_ports(*this, wunit_ports)
{ }
required_device<midway_serial_pic_device> m_midway_serial_pic;
required_shared_ptr<UINT16> m_nvram;
required_ioport_array<4> m_ports;
DECLARE_IOPORT_ARRAY(wunit_ports);
UINT8 m_cmos_write_enable;
UINT16 m_iodata[8];
UINT8 m_ioshuffle[16];
UINT8 m_uart[8];
UINT8 m_security_bits;
UINT16 *m_umk3_palette;
DECLARE_WRITE16_MEMBER(midwunit_cmos_enable_w);
DECLARE_WRITE16_MEMBER(midwunit_cmos_w);
DECLARE_READ16_MEMBER(midwunit_cmos_r);
DECLARE_WRITE16_MEMBER(midwunit_io_w);
DECLARE_READ16_MEMBER(midwunit_io_r);
DECLARE_READ16_MEMBER(midwunit_security_r);
DECLARE_WRITE16_MEMBER(midwunit_security_w);
DECLARE_READ16_MEMBER(midwunit_sound_r);
DECLARE_READ16_MEMBER(midwunit_sound_state_r);
DECLARE_WRITE16_MEMBER(midwunit_sound_w);
DECLARE_WRITE16_MEMBER(umk3_palette_hack_w);
DECLARE_WRITE16_MEMBER(wwfmania_io_0_w);
DECLARE_DRIVER_INIT(mk3r10);
DECLARE_DRIVER_INIT(nbahangt);
DECLARE_DRIVER_INIT(wwfmania);
DECLARE_DRIVER_INIT(umk3);
DECLARE_DRIVER_INIT(mk3);
DECLARE_DRIVER_INIT(openice);
DECLARE_DRIVER_INIT(rmpgwt);
DECLARE_DRIVER_INIT(umk3r11);
DECLARE_DRIVER_INIT(mk3r20);
DECLARE_MACHINE_RESET(midwunit);
DECLARE_VIDEO_START(midwunit);
void register_state_saving();
void init_wunit_generic();
void init_mk3_common();
};
|