blob: c7c0a7e2cecbcfbc505771a5af94b9bf21677fd6 (
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
|
/***************************************************************************
pcecommn.h
Headers for the common stuff for NEC PC Engine/TurboGrafx16.
***************************************************************************/
#ifndef PCECOMMON_H
#define PCECOMMON_H
#define PCE_MAIN_CLOCK 21477270
class pce_common_state : public driver_device
{
public:
pce_common_state(const machine_config &mconfig, device_type type, const char *tag)
: driver_device(mconfig, type, tag),
m_maincpu(*this, "maincpu") { }
DECLARE_WRITE8_MEMBER(pce_joystick_w);
DECLARE_READ8_MEMBER(pce_joystick_r);
DECLARE_DRIVER_INIT(pce_common);
required_device<cpu_device> m_maincpu;
virtual UINT8 joy_read();
private:
UINT8 m_io_port_options; /*driver-specific options for the PCE*/
int m_joystick_port_select; /* internal index of joystick ports */
int m_joystick_data_select; /* which nibble of joystick data we want */
};
#endif
|