From eb13a4dedafda2a6fe5658527b600d19e10f97d8 Mon Sep 17 00:00:00 2001 From: hap Date: Tue, 26 May 2015 14:53:56 +0200 Subject: [PATCH] added tms1024 device placeholder --- scripts/src/machine.lua | 12 ++++++++ scripts/target/mame/arcade.lua | 1 + scripts/target/mame/mess.lua | 1 + src/emu/machine/tms1024.c | 43 ++++++++++++++++++++++++++++ src/emu/machine/tms1024.h | 52 ++++++++++++++++++++++++++++++++++ src/mess/drivers/hh_tms1k.c | 1 + 6 files changed, 110 insertions(+) create mode 100644 src/emu/machine/tms1024.c create mode 100644 src/emu/machine/tms1024.h 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 @@ -2070,6 +2070,18 @@ if (MACHINES["TMP68301"]~=null) then } 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 - 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