summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author hap <happppp@users.noreply.github.com>2015-05-26 14:53:56 +0200
committer hap <happppp@users.noreply.github.com>2015-05-26 14:53:56 +0200
commiteb13a4dedafda2a6fe5658527b600d19e10f97d8 (patch)
tree83226084946b7a9502535f5d0b5a6b7d72225861
parent077ff462f13655a2c0189f9a2fc97957d4a98199 (diff)
added tms1024 device placeholder
-rw-r--r--scripts/src/machine.lua12
-rw-r--r--scripts/target/mame/arcade.lua1
-rw-r--r--scripts/target/mame/mess.lua1
-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
6 files changed, 110 insertions, 0 deletions
diff --git a/scripts/src/machine.lua b/scripts/src/machine.lua
index 4324662ffd3..528cebbd3d2 100644
--- a/scripts/src/machine.lua
+++ b/scripts/src/machine.lua
@@ -2072,6 +2072,18 @@ end
---------------------------------------------------
--
+--@src/emu/machine/tms1024.h,MACHINES += TMS1024
+---------------------------------------------------
+
+if (MACHINES["TMS1024"]~=null) then
+ files {
+ MAME_DIR .. "src/emu/machine/tms1024.c",
+ MAME_DIR .. "src/emu/machine/tms1024.h",
+ }
+end
+
+---------------------------------------------------
+--
--@src/emu/machine/tms5501.h,MACHINES += TMS5501
---------------------------------------------------
diff --git a/scripts/target/mame/arcade.lua b/scripts/target/mame/arcade.lua
index 0dfec94644a..eff03dac309 100644
--- a/scripts/target/mame/arcade.lua
+++ b/scripts/target/mame/arcade.lua
@@ -557,6 +557,7 @@ MACHINES["STEPPERS"] = true
--MACHINES["WOZFDC"] = true
--MACHINES["DIABLO_HD"] = true
MACHINES["PCI9050"] = true
+--MACHINES["TMS1024"] = true
--------------------------------------------------
-- specify available bus cores
diff --git a/scripts/target/mame/mess.lua b/scripts/target/mame/mess.lua
index 2d027f05677..84bed8d6c66 100644
--- a/scripts/target/mame/mess.lua
+++ b/scripts/target/mame/mess.lua
@@ -556,6 +556,7 @@ MACHINES["STEPPERS"] = true
MACHINES["CORVUSHD"] = true
MACHINES["WOZFDC"] = true
MACHINES["DIABLO_HD"] = true
+MACHINES["TMS1024"] = true
--------------------------------------------------
-- specify available bus cores
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