summaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/emu/machine/tms1024.c43
-rw-r--r--src/emu/machine/tms1024.h52
-rw-r--r--src/mess/drivers/hh_tms1k.c1
3 files changed, 96 insertions, 0 deletions
diff --git a/src/emu/machine/tms1024.c b/src/emu/machine/tms1024.c
new file mode 100644
index 00000000000..b5dfd018b87
--- /dev/null
+++ b/src/emu/machine/tms1024.c
@@ -0,0 +1,43 @@
+// license:BSD-3-Clause
+// copyright-holders:hap
+/**********************************************************************
+
+ Texas Instruments TMS1024, TMS1025 I/O expander emulation
+
+**********************************************************************/
+
+#include "machine/tms1024.h"
+
+
+const device_type TMS1024 = &device_creator<tms1024_device>;
+
+//-------------------------------------------------
+// tms1024_device - constructor
+//-------------------------------------------------
+
+tms1024_device::tms1024_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
+ : device_t(mconfig, TMS1024, "TMS1024", tag, owner, clock, "tms1024", __FILE__)
+{
+}
+
+//-------------------------------------------------
+// device_start - device-specific startup
+//-------------------------------------------------
+
+void tms1024_device::device_start()
+{
+ // resolve callbacks
+
+ // register for savestates
+}
+
+//-------------------------------------------------
+// device_reset - device-specific reset
+//-------------------------------------------------
+
+void tms1024_device::device_reset()
+{
+}
+
+
+// handlers
diff --git a/src/emu/machine/tms1024.h b/src/emu/machine/tms1024.h
new file mode 100644
index 00000000000..ca1ad0740cf
--- /dev/null
+++ b/src/emu/machine/tms1024.h
@@ -0,0 +1,52 @@
+// license:BSD-3-Clause
+// copyright-holders:hap
+/**********************************************************************
+
+ Texas Instruments TMS1024, TMS1025 I/O expander emulation
+
+**********************************************************************
+
+
+
+
+
+**********************************************************************/
+
+#ifndef _TMS1024_H_
+#define _TMS1024_H_
+
+#include "emu.h"
+
+
+//**************************************************************************
+// INTERFACE CONFIGURATION MACROS
+//**************************************************************************
+
+#define MCFG_TMS1024_ADD(_tag) \
+ MCFG_DEVICE_ADD(_tag, TMS1024, 0)
+
+
+//**************************************************************************
+// TYPE DEFINITIONS
+//**************************************************************************
+
+// ======================> tms1024_device
+
+class tms1024_device : public device_t
+{
+public:
+ tms1024_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
+
+ // static configuration helpers
+
+protected:
+ // device-level overrides
+ virtual void device_start();
+ virtual void device_reset();
+};
+
+// device type definition
+extern const device_type TMS1024;
+
+
+#endif /* _TMS1024_H_ */
diff --git a/src/mess/drivers/hh_tms1k.c b/src/mess/drivers/hh_tms1k.c
index 27d47c02bf6..5c7c020d68b 100644
--- a/src/mess/drivers/hh_tms1k.c
+++ b/src/mess/drivers/hh_tms1k.c
@@ -91,6 +91,7 @@
***************************************************************************/
#include "includes/hh_tms1k.h"
+#include "machine/tms1024.h"
#include "sound/beep.h"
// internal artwork