From 383ffba197af90645ed2b69822c8f2b2d47ea38b Mon Sep 17 00:00:00 2001 From: hap Date: Tue, 16 Dec 2014 02:42:36 +0100 Subject: tispeak.c skeleton driver --- src/mess/drivers/tispeak.c | 127 ++++++++++++++++++++++++++++++++++++++++++++ src/mess/layout/tispeak.lay | 13 +++++ src/mess/mess.lst | 3 ++ src/mess/mess.mak | 2 + 4 files changed, 145 insertions(+) create mode 100644 src/mess/drivers/tispeak.c create mode 100644 src/mess/layout/tispeak.lay diff --git a/src/mess/drivers/tispeak.c b/src/mess/drivers/tispeak.c new file mode 100644 index 00000000000..8ef758bfc7b --- /dev/null +++ b/src/mess/drivers/tispeak.c @@ -0,0 +1,127 @@ +// license:BSD-3-Clause +// copyright-holders:hap +/*************************************************************************** + + Texas Instruments Speak & Spell hardware + +***************************************************************************/ + +#include "emu.h" +#include "cpu/tms0980/tms0980.h" + +#include "tispeak.lh" + +// master clock is unknown +#define MASTER_CLOCK (500000) + + +class tispeak_state : public driver_device +{ +public: + tispeak_state(const machine_config &mconfig, device_type type, const char *tag) + : driver_device(mconfig, type, tag), + m_maincpu(*this, "maincpu") + { } + + required_device m_maincpu; + + UINT16 m_r; + UINT16 m_o; + + DECLARE_READ8_MEMBER(read_k); + DECLARE_WRITE16_MEMBER(write_o); + DECLARE_WRITE16_MEMBER(write_r); + + virtual void machine_start(); +}; + + + +/*************************************************************************** + + I/O + +***************************************************************************/ + +READ8_MEMBER(tispeak_state::read_k) +{ + return 0; +} + +WRITE16_MEMBER(tispeak_state::write_r) +{ + m_r = data; +} + +WRITE16_MEMBER(tispeak_state::write_o) +{ + m_o = data; +} + + + +/*************************************************************************** + + Inputs + +***************************************************************************/ + +static INPUT_PORTS_START( tispeak ) +INPUT_PORTS_END + + + +/*************************************************************************** + + Machine Config + +***************************************************************************/ + +void tispeak_state::machine_start() +{ + m_r = 0; + m_o = 0; + + save_item(NAME(m_r)); + save_item(NAME(m_o)); +} + + +static MACHINE_CONFIG_START( tispeak, tispeak_state ) + + /* basic machine hardware */ + MCFG_CPU_ADD("maincpu", TMS0270, MASTER_CLOCK) + MCFG_TMS1XXX_READ_K_CB(READ8(tispeak_state, read_k)) + MCFG_TMS1XXX_WRITE_O_CB(WRITE16(tispeak_state, write_o)) + MCFG_TMS1XXX_WRITE_R_CB(WRITE16(tispeak_state, write_r)) + + MCFG_DEFAULT_LAYOUT(layout_tispeak) + + /* no video! */ + + /* sound hardware */ +// MCFG_SPEAKER_STANDARD_MONO("mono") +MACHINE_CONFIG_END + + + +/*************************************************************************** + + Game driver(s) + +***************************************************************************/ + +ROM_START( snmath ) + ROM_REGION( 0x1000, "maincpu", 0 ) + ROM_LOAD( "us4946391_t2074", 0x0000, 0x1000, CRC(011f0c2d) SHA1(d2e14d72e03ca864abd51da78ffb71a9da82f624) ) // from patent 4946391, verified with source code + + ROM_REGION( 1246, "maincpu:ipla", 0 ) + ROM_LOAD( "tms0980_default_ipla.pla", 0, 1246, CRC(42db9a38) SHA1(2d127d98028ec8ec6ea10c179c25e447b14ba4d0) ) + ROM_REGION( 2127, "maincpu:mpla", 0 ) + ROM_LOAD( "tmc0270_cd2708_mpla.pla", 0, 2127, BAD_DUMP CRC(94333005) SHA1(1583444c73637d859632dd5186cd7e1a2588c78a) ) // taken from cd2708, need to verify if it's same as cd2704 + ROM_REGION( 1246, "maincpu:opla", 0 ) + ROM_LOAD( "tmc0270_cd2708_opla.pla", 0, 1246, BAD_DUMP CRC(e70836e2) SHA1(70e7dcdf81ae2052874fb21c504fcc06b2649f9a) ) // " +ROM_END + + +COMP( 1980, snmath, 0, 0, tispeak, tispeak, driver_device, 0, "Texas Instruments", "Speak & Math (US, prototype)", GAME_NO_SOUND | GAME_NOT_WORKING ) diff --git a/src/mess/layout/tispeak.lay b/src/mess/layout/tispeak.lay new file mode 100644 index 00000000000..b67aec9ca65 --- /dev/null +++ b/src/mess/layout/tispeak.lay @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/src/mess/mess.lst b/src/mess/mess.lst index 68fe86f2238..3cde9f3804a 100644 --- a/src/mess/mess.lst +++ b/src/mess/mess.lst @@ -1062,6 +1062,9 @@ avigo_fr // 1997 Avigo (French) avigo_es // 1997 Avigo (Spanish) avigo_it // 1997 Avigo (Italian) +// TI Speak & Spell +snmath + // Texas Instruments Calculators tisr16 // 1974 SR-16 ti1270 diff --git a/src/mess/mess.mak b/src/mess/mess.mak index 3fd565b18d0..39be18fadd0 100644 --- a/src/mess/mess.mak +++ b/src/mess/mess.mak @@ -1730,6 +1730,7 @@ $(MESSOBJ)/ti.a: \ $(MESS_DRIVERS)/exelv.o \ $(MESS_DRIVERS)/geneve.o \ $(MESS_DRIVERS)/ticalc1x.o \ + $(MESS_DRIVERS)/tispeak.o \ $(MESS_DRIVERS)/ti74.o \ $(MESS_DRIVERS)/ti85.o $(MESS_MACHINE)/ti85.o $(MESS_VIDEO)/ti85.o \ $(MESS_DRIVERS)/ti89.o \ @@ -2177,6 +2178,7 @@ $(MESS_DRIVERS)/ticalc1x.o: $(MESS_LAYOUT)/ti1270.lh \ $(MESS_LAYOUT)/ti30.lh \ $(MESS_LAYOUT)/tisr16.lh \ $(MESS_LAYOUT)/wizatron.lh +$(MESS_DRIVERS)/tispeak.o: $(MESS_LAYOUT)/tispeak.lh $(MESS_DRIVERS)/tk80.o: $(MESS_LAYOUT)/tk80.lh $(MESS_DRIVERS)/tm990189.o: $(MESS_LAYOUT)/tm990189.lh \ $(MESS_LAYOUT)/tm990189v.lh -- cgit v1.2.3