summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/coco/dragon_amtor.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/coco/dragon_amtor.h')
-rw-r--r--src/devices/bus/coco/dragon_amtor.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/src/devices/bus/coco/dragon_amtor.h b/src/devices/bus/coco/dragon_amtor.h
new file mode 100644
index 00000000000..34cea662110
--- /dev/null
+++ b/src/devices/bus/coco/dragon_amtor.h
@@ -0,0 +1,45 @@
+// license:BSD-3-Clause
+// copyright-holders:Nigel Barnes
+#ifndef MAME_BUS_COCO_DRAGON_AMTOR_H
+#define MAME_BUS_COCO_DRAGON_AMTOR_H
+
+#pragma once
+
+#include "cococart.h"
+
+//**************************************************************************
+// TYPE DEFINITIONS
+//**************************************************************************
+
+// ======================> dragon_amtor_device
+
+class dragon_amtor_device :
+ public device_t,
+ public device_cococart_interface
+{
+public:
+ // construction/destruction
+ dragon_amtor_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
+
+ // optional information overrides
+ virtual const tiny_rom_entry *device_rom_region() const override;
+ virtual ioport_constructor device_input_ports() const override;
+
+protected:
+ // device-level overrides
+ virtual void device_start() override;
+ virtual uint8_t* get_cart_base() override;
+ virtual memory_region* get_cart_memregion() override;
+
+ virtual DECLARE_READ8_MEMBER(cts_read) override;
+
+private:
+ required_memory_region m_eprom;
+ required_ioport m_switch;
+};
+
+
+// device type definitions
+DECLARE_DEVICE_TYPE(DRAGON_AMTOR, dragon_amtor_device)
+
+#endif // MAME_BUS_COCO_DRAGON_AMTOR_H