Previous 199869 Revisions Next

r36111 Wednesday 25th February, 2015 at 21:16:51 UTC by hap
started a generic driver for TMS1000 MCU handhelds.

and put a skeleton of Enten Baseball in it, because ducks
[/branches/kale/src/mess]mess.lst mess.mak
[/branches/kale/src/mess/drivers]hh_tms1k.c*
[/branches/kale/src/mess/layout]ebball.lay*

branches/kale/src/mess/drivers/hh_tms1k.c
r0r244623
1// license:BSD-3-Clause
2// copyright-holders:hap
3/***************************************************************************
4
5  This driver is a collection of simple dedicated handheld and tabletop
6  toys based around the TMS1000 MCU series. Anything more complex or clearly
7  part of a series is (or will be) in its own driver.
8
9
10***************************************************************************/
11
12#include "emu.h"
13#include "cpu/tms0980/tms0980.h"
14#include "sound/speaker.h"
15
16#include "ebball.lh"
17
18
19class hh_tms1k_state : public driver_device
20{
21public:
22   hh_tms1k_state(const machine_config &mconfig, device_type type, const char *tag)
23      : driver_device(mconfig, type, tag),
24      m_maincpu(*this, "maincpu"),
25//      m_button_matrix(*this, "IN"),
26      m_speaker(*this, "speaker")
27   { }
28
29   required_device<cpu_device> m_maincpu;
30//   required_ioport_array<3> m_button_matrix;
31   required_device<speaker_sound_device> m_speaker;
32
33   virtual void machine_start();
34};
35
36
37static INPUT_PORTS_START( ebball )
38INPUT_PORTS_END
39
40
41
42/***************************************************************************
43
44  Machine Config
45
46***************************************************************************/
47
48void hh_tms1k_state::machine_start()
49{
50}
51
52
53static MACHINE_CONFIG_START( ebball, hh_tms1k_state )
54
55   /* basic machine hardware */
56   MCFG_CPU_ADD("maincpu", TMS1000, 350000) // RC osc. R=43K, C=47pf -> ~350kHz
57
58   MCFG_DEFAULT_LAYOUT(layout_ebball)
59
60   /* no video! */
61
62   /* sound hardware */
63   MCFG_SPEAKER_STANDARD_MONO("mono")
64   MCFG_SOUND_ADD("speaker", SPEAKER_SOUND, 0)
65   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
66MACHINE_CONFIG_END
67
68
69
70/***************************************************************************
71
72  Game driver(s)
73
74***************************************************************************/
75
76ROM_START( ebball )
77   ROM_REGION( 0x0400, "maincpu", 0 )
78   ROM_LOAD( "mp0914", 0x0000, 0x0400, CRC(3c6fb05b) SHA1(b2fe4b3ca72d6b4c9bfa84d67f64afdc215e7178) )
79
80   ROM_REGION( 867, "maincpu:mpla", 0 )
81   ROM_LOAD( "tms1000_ebball_mpla.pla", 0, 867, CRC(d33da3cf) SHA1(13c4ebbca227818db75e6db0d45b66ba5e207776) )
82   ROM_REGION( 365, "maincpu:opla", 0 )
83   ROM_LOAD( "tms1000_ebball_opla.pla", 0, 365, CRC(062bf5bb) SHA1(8d73ee35444299595961225528b153e3a5fe66bf) )
84ROM_END
85
86
87CONS( 1979, ebball, 0, 0, ebball, ebball, driver_device, 0, "Entex", "Baseball (Entex)", GAME_SUPPORTS_SAVE | GAME_NOT_WORKING )
branches/kale/src/mess/layout/ebball.lay
r0r244623
1<?xml version="1.0"?>
2<mamelayout version="2">
3
4<!-- define elements -->
5
6   <element name="static_black"><rect><color red="0.0" green="0.0" blue="0.0" /></rect></element>
7
8   <element name="digit" defstate="0">
9      <led7seg><color red="1.0" green="0.20" blue="0.22" /></led7seg>
10   </element>
11   <element name="led" defstate="0">
12      <disk state="0"><color red="0.2" green="0.04" blue="0.05" /></disk>
13      <disk state="1"><color red="1.0" green="0.20" blue="0.22" /></disk>
14   </element>
15
16
17<!-- build screen -->
18
19   <view name="Internal Layout">
20      <bounds left="0" right="64" top="0" bottom="64" />
21      <bezel element="static_black">
22         <bounds left="0" right="64" top="0" bottom="64" />
23      </bezel>
24
25
26   </view>
27</mamelayout>
branches/kale/src/mess/mess.lst
r244622r244623
26162616alnchase
26172617edracula
26182618tc4
2619ebball
branches/kale/src/mess/mess.mak
r244622r244623
17811781   $(MESS_MACHINE)/ti99/videowrp.o \
17821782   $(MESS_VIDEO)/733_asr.o     \
17831783   $(MESS_VIDEO)/911_vdt.o     \
1784   $(MESS_DRIVERS)/hh_tms1k.o  \
17841785
17851786$(MESSOBJ)/tiger.a:             \
17861787   $(MESS_DRIVERS)/gamecom.o $(MESS_MACHINE)/gamecom.o $(MESS_VIDEO)/gamecom.o \
r244622r244623
21442145$(MESS_DRIVERS)/gamecom.o:  $(MESS_LAYOUT)/gamecom.lh
21452146$(MESS_DRIVERS)/glasgow.o:  $(MESS_LAYOUT)/glasgow.lh
21462147$(MESS_DRIVERS)/h8.o:       $(MESS_LAYOUT)/h8.lh
2148$(MESS_DRIVERS)/hh_tms1k.o: $(MESS_LAYOUT)/ebball.lh
21472149$(MESS_DRIVERS)/ie15.o:     $(MESS_LAYOUT)/ie15.lh
21482150$(MESS_DRIVERS)/instruct.o: $(MESS_LAYOUT)/instruct.lh
21492151$(MESS_DRIVERS)/k1003.o:    $(MESS_LAYOUT)/k1003.lh


Previous 199869 Revisions Next


© 1997-2024 The MAME Team