blob: fa1c2e1de9f75883f99515345fd2549118fc365f (
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
|
// license:BSD-3-Clause
// copyright-holders:Olivier Galibert
// Yamaha SWP20, rompler
#ifndef DEVICES_SOUND_SWP20_H
#define DEVICES_SOUND_SWP20_H
#pragma once
class swp20_device : public device_t, public device_sound_interface, public device_rom_interface
{
public:
swp20_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 11289600);
void map(address_map &map);
protected:
virtual void device_start() override;
virtual void device_reset() override;
virtual void sound_stream_update(sound_stream &stream, stream_sample_t **inputs, stream_sample_t **outputs, int samples) override;
virtual void rom_bank_updated() override;
private:
u8 m_p3c_port;
bool m_p3c_address;
// Generic upload port
void p3c_w(u8 data);
// Generic catch-all
u8 snd_r(offs_t offset);
void snd_w(offs_t offset, u8 data);
};
DECLARE_DEVICE_TYPE(SWP20, swp20_device)
#endif
|