summaryrefslogtreecommitdiffstatshomepage
path: root/src/mess/drivers/cortex.c
diff options
context:
space:
mode:
author Wilbert Pol <wilbert@jdg.info>2014-02-26 21:23:32 +0000
committer Wilbert Pol <wilbert@jdg.info>2014-02-26 21:23:32 +0000
commitf6b2d2489e408d6d0d1d0be3e74820af6b04ce27 (patch)
treeb678a91700c66213c2c53cefde814120a20f3d96 /src/mess/drivers/cortex.c
parent17b7a9d36c2dc5de4971e424028bbf00c090217f (diff)
removing some unused legacy things (nw)
Diffstat (limited to 'src/mess/drivers/cortex.c')
-rw-r--r--src/mess/drivers/cortex.c29
1 files changed, 2 insertions, 27 deletions
diff --git a/src/mess/drivers/cortex.c b/src/mess/drivers/cortex.c
index fb50940e2f6..04b46221585 100644
--- a/src/mess/drivers/cortex.c
+++ b/src/mess/drivers/cortex.c
@@ -22,14 +22,9 @@
****************************************************************************/
-#define MODERN 1
#include "emu.h"
-#if MODERN
#include "cpu/tms9900/tms9995.h"
-#else
-#include "cpu/tms9900/tms9900l.h"
-#endif
#include "video/tms9928a.h"
class cortex_state : public driver_device
@@ -42,7 +37,7 @@ public:
{ }
virtual void machine_reset();
- required_device<cpu_device> m_maincpu;
+ required_device<tms9995_device> m_maincpu;
required_shared_ptr<UINT8> m_p_ram;
};
@@ -77,14 +72,9 @@ void cortex_state::machine_reset()
{
UINT8* ROM = memregion("maincpu")->base();
memcpy(m_p_ram, ROM, 0x6000);
-#if MODERN
- static_cast<tms9995_device*>(machine().device("maincpu"))->set_ready(ASSERT_LINE);
-#else
- m_maincpu->reset();
-#endif
+ m_maincpu->set_ready(ASSERT_LINE);
}
-#if MODERN
static TMS9995_CONFIG( cpuconf95 )
{
DEVCB_NULL, // external op
@@ -95,14 +85,6 @@ static TMS9995_CONFIG( cpuconf95 )
INTERNAL_RAM, // use internal RAM
NO_OVERFLOW_INT // The generally available versions of TMS9995 have a deactivated overflow interrupt
};
-#else
-static const struct tms9995reset_param cortex_processor_config =
-{
- 0, /* disable automatic wait state generation */
- 0, /* no IDLE callback */
- 0 /* no MP9537 mask */
-};
-#endif
static TMS9928A_INTERFACE(cortex_tms9929a_interface)
{
@@ -113,14 +95,7 @@ static TMS9928A_INTERFACE(cortex_tms9929a_interface)
static MACHINE_CONFIG_START( cortex, cortex_state )
/* basic machine hardware */
/* TMS9995 CPU @ 12.0 MHz */
-#if MODERN
MCFG_TMS99xx_ADD("maincpu", TMS9995, 12000000, cortex_mem, cortex_io, cpuconf95)
-#else
- MCFG_CPU_ADD("maincpu", TMS9995L, 12000000)
- MCFG_CPU_CONFIG(cortex_processor_config)
- MCFG_CPU_PROGRAM_MAP(cortex_mem)
- MCFG_CPU_IO_MAP(cortex_io)
-#endif
/* video hardware */
MCFG_TMS9928A_ADD( "tms9928a", TMS9929A, cortex_tms9929a_interface )