From e8b4785baa26654c5c7a78611bc03d6c8ee68460 Mon Sep 17 00:00:00 2001 From: hap Date: Sat, 7 Feb 2015 12:20:07 +0100 Subject: added tomy tennis skeleton driver --- src/emu/cpu/ucom4/ucom4.c | 2 +- src/emu/cpu/ucom4/ucom4d.c | 2 +- src/mess/drivers/tmtennis.c | 101 +++++++++++++++++++++++++++++++++++++++++++ src/mess/layout/tmtennis.lay | 19 ++++++++ src/mess/mess.lst | 1 + src/mess/mess.mak | 2 + 6 files changed, 125 insertions(+), 2 deletions(-) create mode 100644 src/mess/drivers/tmtennis.c create mode 100644 src/mess/layout/tmtennis.lay diff --git a/src/emu/cpu/ucom4/ucom4.c b/src/emu/cpu/ucom4/ucom4.c index 3796394b5ec..0734cac425f 100644 --- a/src/emu/cpu/ucom4/ucom4.c +++ b/src/emu/cpu/ucom4/ucom4.c @@ -142,7 +142,7 @@ void ucom4_cpu_device::device_start() state_add(UCOM4_ACC, "ACC", m_acc).formatstr("%01X"); state_add(STATE_GENPC, "curpc", m_pc).formatstr("%04X").noshow(); -// state_add(STATE_GENFLAGS, "GENFLAGS", m_flags).formatstr("%4s").noshow(); + state_add(STATE_GENFLAGS, "GENFLAGS", m_carry_f).formatstr("%4s").noshow(); // dummy m_icountptr = &m_icount; } diff --git a/src/emu/cpu/ucom4/ucom4d.c b/src/emu/cpu/ucom4/ucom4d.c index 0663cfe4690..bfbdd7da43a 100644 --- a/src/emu/cpu/ucom4/ucom4d.c +++ b/src/emu/cpu/ucom4/ucom4d.c @@ -13,7 +13,7 @@ CPU_DISASSEMBLE(ucom4) { - int pos = 0; + int pos = 1;//0; // UINT8 op = oprom[pos++]; // UINT8 instr = ucom4_mnemonic[op]; diff --git a/src/mess/drivers/tmtennis.c b/src/mess/drivers/tmtennis.c new file mode 100644 index 00000000000..7e4a2fed938 --- /dev/null +++ b/src/mess/drivers/tmtennis.c @@ -0,0 +1,101 @@ +// license:BSD-3-Clause +// copyright-holders:hap +/*************************************************************************** + + Tomy Tennis (manufactured in Japan) + * board labeled TOMY TN-04 TENNIS + * NEC uCOM-44 MCU, labeled D552C 048 + * VFD display NEC FIP11AM15T (FIP=fluorescent indicator panel) + + +***************************************************************************/ + +#include "emu.h" +#include "cpu/ucom4/ucom4.h" +#include "sound/speaker.h" + +#include "tmtennis.lh" + +// master clock is from an LC circuit oscillating by default at 360kHz, +// the difficulty switch puts a capacitor across it to slow it down to 260kHz +#define MASTER_CLOCK_PRO1 (260000) +#define MASTER_CLOCK_PRO2 (360000) + + +class tmtennis_state : public driver_device +{ +public: + tmtennis_state(const machine_config &mconfig, device_type type, const char *tag) + : driver_device(mconfig, type, tag), + m_maincpu(*this, "maincpu"), + m_speaker(*this, "speaker") + { } + + required_device m_maincpu; + required_device m_speaker; + + virtual void machine_start(); +}; + + + +/*************************************************************************** + + I/O + +***************************************************************************/ + + + +/*************************************************************************** + + Inputs + +***************************************************************************/ + +static INPUT_PORTS_START( tmtennis ) +INPUT_PORTS_END + + + +/*************************************************************************** + + Machine Config + +***************************************************************************/ + +void tmtennis_state::machine_start() +{ +} + + +static MACHINE_CONFIG_START( tmtennis, tmtennis_state ) + + /* basic machine hardware */ + MCFG_CPU_ADD("maincpu", NEC_D552, MASTER_CLOCK_PRO2) + + MCFG_DEFAULT_LAYOUT(layout_tmtennis) + + /* no video! */ + + /* sound hardware */ + MCFG_SPEAKER_STANDARD_MONO("mono") + MCFG_SOUND_ADD("speaker", SPEAKER_SOUND, 0) + MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) +MACHINE_CONFIG_END + + + +/*************************************************************************** + + Game driver(s) + +***************************************************************************/ + +ROM_START( tmtennis ) + ROM_REGION( 0x0400, "maincpu", 0 ) + ROM_LOAD( "d552c-048", 0x0000, 0x0400, CRC(78702003) SHA1(4d427d4dbeed901770c682338867f58c7b54eee3) ) +ROM_END + + +CONS( 1980, tmtennis, 0, 0, tmtennis, tmtennis, driver_device, 0, "Tomy", "Tomytronic Tennis", GAME_NOT_WORKING | GAME_SUPPORTS_SAVE ) diff --git a/src/mess/layout/tmtennis.lay b/src/mess/layout/tmtennis.lay new file mode 100644 index 00000000000..53a7103aec7 --- /dev/null +++ b/src/mess/layout/tmtennis.lay @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + + diff --git a/src/mess/mess.lst b/src/mess/mess.lst index ded9c5d7240..8bc6a22f593 100644 --- a/src/mess/mess.lst +++ b/src/mess/mess.lst @@ -2609,3 +2609,4 @@ bitgrphb unk3403 elecdet wildfire +tmtennis diff --git a/src/mess/mess.mak b/src/mess/mess.mak index 219ecccc47e..20f76a52dca 100644 --- a/src/mess/mess.mak +++ b/src/mess/mess.mak @@ -1788,6 +1788,7 @@ $(MESSOBJ)/tiki.a: \ $(MESS_DRIVERS)/tiki100.o \ $(MESSOBJ)/tomy.a: \ + $(MESS_DRIVERS)/tmtennis.o \ $(MESS_DRIVERS)/tutor.o \ $(MESSOBJ)/toshiba.a: \ @@ -2208,6 +2209,7 @@ $(MESS_DRIVERS)/tispeak.o: $(MESS_LAYOUT)/lantutor.lh \ $(MESS_DRIVERS)/tk80.o: $(MESS_LAYOUT)/tk80.lh $(MESS_DRIVERS)/tm990189.o: $(MESS_LAYOUT)/tm990189.lh \ $(MESS_LAYOUT)/tm990189v.lh +$(MESS_DRIVERS)/tmtennis.o: $(MESS_LAYOUT)/tmtennis.lh $(MESS_DRIVERS)/unixpc.o: $(MESS_LAYOUT)/unixpc.lh $(MESS_DRIVERS)/ut88.o: $(MESS_LAYOUT)/ut88mini.lh $(MESS_DRIVERS)/vboy.o: $(MESS_LAYOUT)/vboy.lh -- cgit v1.2.3