summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/locomo.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/machine/locomo.h')
-rw-r--r--src/devices/machine/locomo.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/devices/machine/locomo.h b/src/devices/machine/locomo.h
new file mode 100644
index 00000000000..ac240959d9f
--- /dev/null
+++ b/src/devices/machine/locomo.h
@@ -0,0 +1,34 @@
+// license:BSD-3-Clause
+// copyright-holders:Ryan Holtz
+/***************************************************************************
+
+ Sharp LoCoMo peripheral chip emulation skeleton
+
+***************************************************************************/
+
+#ifndef MAME_MACHINE_LOCOMO
+#define MAME_MACHINE_LOCOMO
+
+#pragma once
+
+class locomo_device : public device_t
+{
+public:
+ locomo_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 0);
+
+ uint32_t read(offs_t offset, uint32_t mem_mask = ~0U);
+ void write(offs_t offset, uint32_t data, uint32_t mem_mask = ~0U);
+
+protected:
+ virtual void device_start() override;
+ virtual void device_reset() override;
+
+ uint16_t m_kbd_cmd;
+ uint16_t m_kbd_row;
+ uint16_t m_kbd_col;
+ uint16_t m_kbd_level;
+};
+
+DECLARE_DEVICE_TYPE(LOCOMO, locomo_device)
+
+#endif // MAME_MACHINE_LOCOMO