added tomy tennis skeleton driver

This commit is contained in:
hap 2015-02-07 12:20:07 +01:00
parent b2a19b6a68
commit e8b4785baa
6 changed files with 125 additions and 2 deletions

View File

@ -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;
}

View File

@ -13,7 +13,7 @@
CPU_DISASSEMBLE(ucom4)
{
int pos = 0;
int pos = 1;//0;
// UINT8 op = oprom[pos++];
// UINT8 instr = ucom4_mnemonic[op];

101
src/mess/drivers/tmtennis.c Normal file
View File

@ -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<cpu_device> m_maincpu;
required_device<speaker_sound_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 )

View File

@ -0,0 +1,19 @@
<?xml version="1.0"?>
<mamelayout version="2">
<!-- define elements -->
<element name="static_black"><rect><color red="0.0" green="0.0" blue="0.0" /></rect></element>
<!-- build screen -->
<view name="Internal Layout">
<bounds left="0" right="100" top="0" bottom="100" />
<bezel element="static_black">
<bounds left="0" right="100" top="0" bottom="100" />
</bezel>
</view>
</mamelayout>

View File

@ -2609,3 +2609,4 @@ bitgrphb
unk3403
elecdet
wildfire
tmtennis

View File

@ -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