blob: 494e5e5d54da78543ba3e0391736585a290dcbd4 (
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
|
// license: GPL-2.0+
// copyright-holders: Dirk Best
/***************************************************************************
Einstein Speech Synthesiser (J&K Software)
***************************************************************************/
#ifndef MAME_BUS_EINSTEIN_USERPORT_SPEECH_H
#define MAME_BUS_EINSTEIN_USERPORT_SPEECH_H
#pragma once
#include "userport.h"
#include "sound/sp0256.h"
//**************************************************************************
// TYPE DEFINITIONS
//**************************************************************************
// ======================> einstein_speech_device
class einstein_speech_device : public device_t, public device_einstein_userport_interface
{
public:
// construction/destruction
einstein_speech_device(const machine_config &mconfig, const char *tag, device_t *owner, const XTAL &clock);
protected:
virtual const tiny_rom_entry *device_rom_region() const override;
virtual void device_add_mconfig(machine_config &config) override;
virtual void device_start() override;
virtual uint8_t read() override;
virtual void write(uint8_t data) override;
private:
required_device<sp0256_device> m_sp0256;
};
// device type definition
DECLARE_DEVICE_TYPE(EINSTEIN_SPEECH, einstein_speech_device)
#endif // MAME_BUS_EINSTEIN_USERPORT_SPEECH_H
|