summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/abcbus/db411223.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/abcbus/db411223.h')
-rw-r--r--src/devices/bus/abcbus/db411223.h60
1 files changed, 60 insertions, 0 deletions
diff --git a/src/devices/bus/abcbus/db411223.h b/src/devices/bus/abcbus/db411223.h
new file mode 100644
index 00000000000..1434db349aa
--- /dev/null
+++ b/src/devices/bus/abcbus/db411223.h
@@ -0,0 +1,60 @@
+// license:BSD-3-Clause
+// copyright-holders:Curt Coder
+/**********************************************************************
+
+ Databoard 4112-23 floppy disk controller emulation
+
+*********************************************************************/
+
+#ifndef MAME_BUS_ABCBUS_DATABOARD_4112_23_H
+#define MAME_BUS_ABCBUS_DATABOARD_4112_23_H
+
+#pragma once
+
+#include "abcbus.h"
+#include "cpu/z80/z80.h"
+
+
+
+//**************************************************************************
+// TYPE DEFINITIONS
+//**************************************************************************
+
+// ======================> databoard_4112_23_t
+
+class databoard_4112_23_t : public device_t,
+ public device_abcbus_card_interface
+{
+public:
+ // construction/destruction
+ databoard_4112_23_t(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
+
+protected:
+ // device-level overrides
+ virtual void device_start() override;
+ virtual void device_reset() override;
+
+ // optional information overrides
+ virtual const tiny_rom_entry *device_rom_region() const override;
+ virtual void device_add_mconfig(machine_config &config) override;
+ virtual ioport_constructor device_input_ports() const override;
+
+ // device_abcbus_interface overrides
+ virtual void abcbus_cs(uint8_t data) override;
+ virtual uint8_t abcbus_inp() override;
+ virtual void abcbus_out(uint8_t data) override;
+ virtual uint8_t abcbus_stat() override;
+ virtual void abcbus_c1(uint8_t data) override;
+ virtual void abcbus_c3(uint8_t data) override;
+
+private:
+ required_device<cpu_device> m_maincpu;
+
+ bool m_cs;
+};
+
+
+// device type definition
+DECLARE_DEVICE_TYPE(DATABOARD_4112_23, databoard_4112_23_t)
+
+#endif // MAME_BUS_ABCBUS_DATABOARD_4112_23_H