Previous 199869 Revisions Next

r34908 Saturday 7th February, 2015 at 11:20:07 UTC by hap
added tomy tennis skeleton driver
[src/emu/cpu/ucom4]ucom4.c ucom4d.c
[src/mess]mess.lst mess.mak
[src/mess/drivers]tmtennis.c*
[src/mess/layout]tmtennis.lay*

trunk/src/emu/cpu/ucom4/ucom4.c
r243419r243420
142142   state_add(UCOM4_ACC, "ACC", m_acc).formatstr("%01X");
143143
144144   state_add(STATE_GENPC, "curpc", m_pc).formatstr("%04X").noshow();
145//   state_add(STATE_GENFLAGS, "GENFLAGS", m_flags).formatstr("%4s").noshow();
145   state_add(STATE_GENFLAGS, "GENFLAGS", m_carry_f).formatstr("%4s").noshow(); // dummy
146146
147147   m_icountptr = &m_icount;
148148}
trunk/src/emu/cpu/ucom4/ucom4d.c
r243419r243420
1313
1414CPU_DISASSEMBLE(ucom4)
1515{
16   int pos = 0;
16   int pos = 1;//0;
1717//   UINT8 op = oprom[pos++];
1818//   UINT8 instr = ucom4_mnemonic[op];
1919
trunk/src/mess/drivers/tmtennis.c
r0r243420
1// license:BSD-3-Clause
2// copyright-holders:hap
3/***************************************************************************
4
5  Tomy Tennis (manufactured in Japan)
6  * board labeled TOMY TN-04 TENNIS
7  * NEC uCOM-44 MCU, labeled D552C 048
8  * VFD display NEC FIP11AM15T (FIP=fluorescent indicator panel)
9
10
11***************************************************************************/
12
13#include "emu.h"
14#include "cpu/ucom4/ucom4.h"
15#include "sound/speaker.h"
16
17#include "tmtennis.lh"
18
19// master clock is from an LC circuit oscillating by default at 360kHz,
20// the difficulty switch puts a capacitor across it to slow it down to 260kHz
21#define MASTER_CLOCK_PRO1 (260000)
22#define MASTER_CLOCK_PRO2 (360000)
23
24
25class tmtennis_state : public driver_device
26{
27public:
28   tmtennis_state(const machine_config &mconfig, device_type type, const char *tag)
29      : driver_device(mconfig, type, tag),
30      m_maincpu(*this, "maincpu"),
31      m_speaker(*this, "speaker")
32   { }
33
34   required_device<cpu_device> m_maincpu;
35   required_device<speaker_sound_device> m_speaker;
36
37   virtual void machine_start();
38};
39
40
41
42/***************************************************************************
43
44  I/O
45
46***************************************************************************/
47
48
49
50/***************************************************************************
51
52  Inputs
53
54***************************************************************************/
55
56static INPUT_PORTS_START( tmtennis )
57INPUT_PORTS_END
58
59
60
61/***************************************************************************
62
63  Machine Config
64
65***************************************************************************/
66
67void tmtennis_state::machine_start()
68{
69}
70
71
72static MACHINE_CONFIG_START( tmtennis, tmtennis_state )
73
74   /* basic machine hardware */
75   MCFG_CPU_ADD("maincpu", NEC_D552, MASTER_CLOCK_PRO2)
76
77   MCFG_DEFAULT_LAYOUT(layout_tmtennis)
78
79   /* no video! */
80
81   /* sound hardware */
82   MCFG_SPEAKER_STANDARD_MONO("mono")
83   MCFG_SOUND_ADD("speaker", SPEAKER_SOUND, 0)
84   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
85MACHINE_CONFIG_END
86
87
88
89/***************************************************************************
90
91  Game driver(s)
92
93***************************************************************************/
94
95ROM_START( tmtennis )
96   ROM_REGION( 0x0400, "maincpu", 0 )
97   ROM_LOAD( "d552c-048", 0x0000, 0x0400, CRC(78702003) SHA1(4d427d4dbeed901770c682338867f58c7b54eee3) )
98ROM_END
99
100
101CONS( 1980, tmtennis, 0, 0, tmtennis, tmtennis, driver_device, 0, "Tomy", "Tomytronic Tennis", GAME_NOT_WORKING | GAME_SUPPORTS_SAVE )
trunk/src/mess/layout/tmtennis.lay
r0r243420
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
9<!-- build screen -->
10
11   <view name="Internal Layout">
12      <bounds left="0" right="100" top="0" bottom="100" />
13      <bezel element="static_black">
14         <bounds left="0" right="100" top="0" bottom="100" />
15      </bezel>
16
17
18   </view>
19</mamelayout>
trunk/src/mess/mess.lst
r243419r243420
26092609unk3403
26102610elecdet
26112611wildfire
2612tmtennis
trunk/src/mess/mess.mak
r243419r243420
17881788   $(MESS_DRIVERS)/tiki100.o   \
17891789
17901790$(MESSOBJ)/tomy.a:              \
1791   $(MESS_DRIVERS)/tmtennis.o  \
17911792   $(MESS_DRIVERS)/tutor.o     \
17921793
17931794$(MESSOBJ)/toshiba.a:           \
r243419r243420
22082209$(MESS_DRIVERS)/tk80.o:     $(MESS_LAYOUT)/tk80.lh
22092210$(MESS_DRIVERS)/tm990189.o: $(MESS_LAYOUT)/tm990189.lh \
22102211                     $(MESS_LAYOUT)/tm990189v.lh
2212$(MESS_DRIVERS)/tmtennis.o: $(MESS_LAYOUT)/tmtennis.lh
22112213$(MESS_DRIVERS)/unixpc.o:   $(MESS_LAYOUT)/unixpc.lh
22122214$(MESS_DRIVERS)/ut88.o:     $(MESS_LAYOUT)/ut88mini.lh
22132215$(MESS_DRIVERS)/vboy.o:     $(MESS_LAYOUT)/vboy.lh


Previous 199869 Revisions Next


© 1997-2024 The MAME Team