blob: 715607f47b9c3c6345077db07ff481f0350013ac (
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
|
// license:BSD-3-Clause
// copyright-holders:R. Belmont
#pragma once
#ifndef __DECOBSMT_H__
#define __DECOBSMT_H__
#include "emu.h"
#include "cpu/m6809/m6809.h"
#include "sound/bsmt2000.h"
#define DECOBSMT_TAG "decobsmt"
#define MCFG_DECOBSMT_ADD(_tag) \
MCFG_DEVICE_ADD(_tag, DECOBSMT, 0)
//**************************************************************************
// TYPE DEFINITIONS
//**************************************************************************
class decobsmt_device : public device_t
{
public:
// construction/destruction
decobsmt_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
DECLARE_WRITE8_MEMBER(bsmt_reset_w);
DECLARE_READ8_MEMBER(bsmt_status_r);
DECLARE_WRITE8_MEMBER(bsmt0_w);
DECLARE_WRITE8_MEMBER(bsmt1_w);
DECLARE_READ8_MEMBER(bsmt_comms_r);
DECLARE_WRITE8_MEMBER(bsmt_comms_w);
DECLARE_WRITE_LINE_MEMBER(bsmt_reset_line);
INTERRUPT_GEN_MEMBER(decobsmt_firq_interrupt);
required_device<cpu_device> m_ourcpu;
required_device<bsmt2000_device> m_bsmt;
protected:
// device-level overrides
virtual void device_start() override;
virtual void device_reset() override;
virtual machine_config_constructor device_mconfig_additions() const override;
private:
UINT8 m_bsmt_latch;
UINT8 m_bsmt_reset;
UINT8 m_bsmt_comms;
};
// device type definition
extern const device_type DECOBSMT;
#endif /* __DECOBSMT_H__ */
|