summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/z80/ky80.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/cpu/z80/ky80.h')
-rw-r--r--src/devices/cpu/z80/ky80.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/src/devices/cpu/z80/ky80.h b/src/devices/cpu/z80/ky80.h
new file mode 100644
index 00000000000..2f5cef749f2
--- /dev/null
+++ b/src/devices/cpu/z80/ky80.h
@@ -0,0 +1,42 @@
+// license:BSD-3-Clause
+// copyright-holders:AJR
+/***************************************************************************
+
+ Taxan KY-80
+
+***************************************************************************/
+
+#ifndef MAME_CPU_Z80_KY80_H
+#define MAME_CPU_Z80_KY80_H
+
+#pragma once
+
+#include "kc82.h"
+
+
+//**************************************************************************
+// TYPE DEFINITIONS
+//**************************************************************************
+
+class ky80_device : public kc82_device
+{
+public:
+ // device type constructor
+ ky80_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock);
+
+protected:
+ // device_execute_interface overrides
+ virtual u64 execute_clocks_to_cycles(u64 clocks) const noexcept override { return (clocks + 2 - 1) / 2; }
+ virtual u64 execute_cycles_to_clocks(u64 cycles) const noexcept override { return (cycles * 2); }
+
+private:
+ // internal address maps
+ void internal_ram(address_map &map) ATTR_COLD;
+ void internal_io(address_map &map) ATTR_COLD;
+};
+
+
+// device type declaration
+DECLARE_DEVICE_TYPE(KY80, ky80_device)
+
+#endif // MAME_CPU_Z80_KY80_H