blob: 385e568c4e589e6fa80c584e46f9aa1fe8748046 (
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
|
// license:BSD-3-Clause
// copyright-holders:Wilbert Pol
#ifndef MAME_BUS_MSX_SLOT_MUSIC_H
#define MAME_BUS_MSX_SLOT_MUSIC_H
#pragma once
#include "bus/msx_slot/slot.h"
#include "bus/msx_slot/rom.h"
#include "sound/ym2413.h"
DECLARE_DEVICE_TYPE(MSX_SLOT_MUSIC, msx_slot_music_device)
class msx_slot_music_device : public msx_slot_rom_device
{
public:
msx_slot_music_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
// configuration helpers
void set_ym2413_tag(const char *tag) { m_ym2413_tag = tag; }
virtual uint8_t read(offs_t offset) override;
protected:
virtual void device_start() override;
private:
void write_ym2413(offs_t offset, uint8_t data);
ym2413_device *m_ym2413;
const char *m_ym2413_tag;
};
#endif // MAME_BUS_MSX_SLOT_MUSIC_H
|