blob: dd6b48234f563aadf1edcad418a292536d41814b (
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
|
/*************************************************************************
Cinematronics Cosmic Chasm hardware
*************************************************************************/
#include "machine/z80ctc.h"
class cchasm_state : public driver_device
{
public:
cchasm_state(const machine_config &mconfig, device_type type, const char *tag)
: driver_device(mconfig, type, tag) { }
int m_sound_flags;
int m_coin_flag;
device_t *m_ctc;
int m_channel_active[2];
int m_output[2];
UINT16 *m_ram;
int m_xcenter;
int m_ycenter;
};
/*----------- defined in machine/cchasm.c -----------*/
WRITE16_HANDLER( cchasm_led_w );
/*----------- defined in audio/cchasm.c -----------*/
extern const z80ctc_interface cchasm_ctc_intf;
WRITE8_HANDLER( cchasm_reset_coin_flag_w );
INPUT_CHANGED( cchasm_set_coin_flag );
READ8_HANDLER( cchasm_coin_sound_r );
READ8_HANDLER( cchasm_soundlatch2_r );
WRITE8_HANDLER( cchasm_soundlatch4_w );
WRITE16_HANDLER( cchasm_io_w );
READ16_HANDLER( cchasm_io_r );
SOUND_START( cchasm );
/*----------- defined in video/cchasm.c -----------*/
WRITE16_HANDLER( cchasm_refresh_control_w );
VIDEO_START( cchasm );
|