summaryrefslogtreecommitdiffstatshomepage
path: root/trunk/src/mame/audio/decobsmt.h
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/src/mame/audio/decobsmt.h')
-rw-r--r--trunk/src/mame/audio/decobsmt.h55
1 files changed, 55 insertions, 0 deletions
diff --git a/trunk/src/mame/audio/decobsmt.h b/trunk/src/mame/audio/decobsmt.h
new file mode 100644
index 00000000000..ab6aadd2947
--- /dev/null
+++ b/trunk/src/mame/audio/decobsmt.h
@@ -0,0 +1,55 @@
+#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);
+
+ // optional information overrides
+ virtual machine_config_constructor device_mconfig_additions() const;
+
+ 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);
+
+ required_device<cpu_device> m_ourcpu;
+ required_device<bsmt2000_device> m_bsmt;
+
+protected:
+ // device-level overrides
+ virtual void device_start();
+ virtual void device_reset();
+
+private:
+ UINT8 m_bsmt_latch;
+ UINT8 m_bsmt_reset;
+ UINT8 m_bsmt_comms;
+};
+
+
+// device type definition
+extern const device_type DECOBSMT;
+
+#endif /* __DECOBSMT_H__ */