blob: ea072d1a9cfb96cfb6a199d7956b362207b3a113 (
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
|
// license:BSD-3-Clause
// copyright-holders:Olivier Galibert, hap
/***************************************************************************
Taito Zoom ZSG-2 sound board
***************************************************************************/
#include "cpu/mn10200/mn10200.h"
#include "cpu/tms57002/tms57002.h"
#include "sound/zsg2.h"
ADDRESS_MAP_EXTERN(taitozoom_mn_map, 16);
class taito_zoom_device : public device_t
{
public:
taito_zoom_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
~taito_zoom_device() {}
DECLARE_WRITE16_MEMBER(sound_irq_w);
DECLARE_READ16_MEMBER(sound_irq_r);
DECLARE_WRITE16_MEMBER(reg_data_w);
DECLARE_WRITE16_MEMBER(reg_address_w);
DECLARE_READ8_MEMBER(shared_ram_r);
DECLARE_WRITE8_MEMBER(shared_ram_w);
DECLARE_READ8_MEMBER(tms_ctrl_r);
DECLARE_WRITE8_MEMBER(tms_ctrl_w);
protected:
// device-level overrides
virtual void device_start();
virtual void device_reset();
private:
// inherited devices/pointers
required_device<mn10200_device> m_soundcpu;
required_device<zsg2_device> m_zsg2;
// internal state
UINT16 m_reg_address;
UINT8 m_tms_ctrl;
UINT8* m_snd_shared_ram;
};
extern const device_type TAITO_ZOOM;
MACHINE_CONFIG_EXTERN( taito_zoom_sound );
#define MCFG_TAITO_ZOOM_ADD(_tag) \
MCFG_DEVICE_ADD(_tag, TAITO_ZOOM, 0)
|