blob: 87e657135b96599afea76f62259291600a808fdf (
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
/***************************************************************************
Cheap Squeak Deluxe / Artificial Artist Sound Board
***************************************************************************/
#pragma once
#ifndef MAME_AUDIO_CSD_H
#define MAME_AUDIO_CSD_H
#include "cpu/m68000/m68000.h"
#include "machine/6821pia.h"
#include "sound/dac.h"
//**************************************************************************
// TYPE DEFINITIONS
//**************************************************************************
// ======================> midway_cheap_squeak_deluxe_device
class midway_cheap_squeak_deluxe_device : public device_t, public device_mixer_interface
{
public:
// construction/destruction
midway_cheap_squeak_deluxe_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
// read/write
DECLARE_READ8_MEMBER(stat_r);
DECLARE_WRITE8_MEMBER(sr_w);
DECLARE_WRITE_LINE_MEMBER(sirq_w);
DECLARE_WRITE_LINE_MEMBER(reset_w);
// internal communications
DECLARE_WRITE8_MEMBER(porta_w);
DECLARE_WRITE8_MEMBER(portb_w);
DECLARE_WRITE_LINE_MEMBER(irq_w);
protected:
// device-level overrides
virtual machine_config_constructor device_mconfig_additions() const override;
virtual const tiny_rom_entry *device_rom_region() const override;
virtual void device_start() override;
virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
private:
// devices
required_device<m68000_device> m_cpu;
required_device<pia6821_device> m_pia;
required_device<dac_word_interface> m_dac;
// internal state
uint8_t m_status;
uint16_t m_dacval;
};
// device type definition
extern const device_type MIDWAY_CHEAP_SQUEAK_DELUXE;
#endif // MAME_AUDIO_CSD_H
|