blob: 3b0dd5aae323b9a86cc1b07bf381093f9e5e754a (
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
|
// license:BSD-3-Clause
// copyright-holders:Barry Rodewald
/*
* s11c_bg.h - Williams System 11C background sound (M68B09E + YM2151 + HC55516 + DAC)
*
* Created on: 2/10/2013
*/
#ifndef S11C_BG_H_
#define S11C_BG_H_
#include "emu.h"
#include "cpu/m6809/m6809.h"
#include "sound/ym2151.h"
#include "sound/hc55516.h"
#include "machine/6821pia.h"
#define MCFG_S11C_BG_ROM_REGION(_region) \
s11c_bg_device::static_set_romregion(*device, _region);
class s11c_bg_device : public device_t,
public device_mixer_interface
{
public:
// construction/destruction
s11c_bg_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
required_device<cpu_device> m_cpu;
required_device<ym2151_device> m_ym2151;
required_device<hc55516_device> m_hc55516;
required_device<pia6821_device> m_pia40;
required_memory_bank m_cpubank;
memory_region* m_rom;
DECLARE_WRITE8_MEMBER(pia40_pb_w);
DECLARE_WRITE_LINE_MEMBER(pia40_ca2_w);
DECLARE_WRITE_LINE_MEMBER(pia40_cb2_w);
DECLARE_WRITE8_MEMBER(bg_speech_clock_w);
DECLARE_WRITE8_MEMBER(bg_speech_digit_w);
DECLARE_WRITE8_MEMBER(bgbank_w);
DECLARE_WRITE_LINE_MEMBER(ym2151_irq_w);
void ctrl_w(uint8_t data);
void data_w(uint8_t data);
static void static_set_romregion(device_t &device, const char *tag);
protected:
// overrides
virtual void device_start() override;
virtual void device_reset() override;
virtual machine_config_constructor device_mconfig_additions() const override;
private:
const char* m_regiontag;
};
extern const device_type S11C_BG;
#endif /* S11C_BG_H_ */
|