summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/cpc/amdrum.h
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2015-09-13 08:41:44 +0200
committer Miodrag Milanovic <mmicko@gmail.com>2015-09-13 08:41:44 +0200
commitf88cefad27a1737c76e09d99c9fb43e173506081 (patch)
tree2d8167d03579c46e226471747eb4407bd00ed6fa /src/devices/bus/cpc/amdrum.h
parente92ac9e0fa8e99869894bea00589bbb526be30aa (diff)
Move all devices into separate part of src tree (nw)
Diffstat (limited to 'src/devices/bus/cpc/amdrum.h')
-rw-r--r--src/devices/bus/cpc/amdrum.h48
1 files changed, 48 insertions, 0 deletions
diff --git a/src/devices/bus/cpc/amdrum.h b/src/devices/bus/cpc/amdrum.h
new file mode 100644
index 00000000000..5040e7d4457
--- /dev/null
+++ b/src/devices/bus/cpc/amdrum.h
@@ -0,0 +1,48 @@
+// license:BSD-3-Clause
+// copyright-holders:Barry Rodewald
+/*
+ * amdrum.h
+ *
+ * Created on: 23/08/2014
+ *
+ * Cheetah Marketing Amdrum
+ *
+ * I/O FFxx - 8-bit unsigned DAC, write only (Ferranti ZN428E-8)
+ * Lower 8 address bits are not decoded.
+ *
+ */
+
+#ifndef AMDRUM_H_
+#define AMDRUM_H_
+
+#include "emu.h"
+#include "cpcexp.h"
+#include "sound/dac.h"
+
+class cpc_amdrum_device : public device_t,
+ public device_cpc_expansion_card_interface
+{
+public:
+ // construction/destruction
+ cpc_amdrum_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(dac_w);
+protected:
+ // device-level overrides
+ virtual void device_start();
+ virtual void device_reset();
+
+private:
+ cpc_expansion_slot_device *m_slot;
+
+ required_device<dac_device> m_dac;
+};
+
+// device type definition
+extern const device_type CPC_AMDRUM;
+
+
+#endif /* AMDRUM_H_ */