trunk/src/mess/drivers/tmtennis.c
| r0 | r243420 | |
| 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 | |
| 25 | class tmtennis_state : public driver_device |
| 26 | { |
| 27 | public: |
| 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 | |
| 56 | static INPUT_PORTS_START( tmtennis ) |
| 57 | INPUT_PORTS_END |
| 58 | |
| 59 | |
| 60 | |
| 61 | /*************************************************************************** |
| 62 | |
| 63 | Machine Config |
| 64 | |
| 65 | ***************************************************************************/ |
| 66 | |
| 67 | void tmtennis_state::machine_start() |
| 68 | { |
| 69 | } |
| 70 | |
| 71 | |
| 72 | static 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) |
| 85 | MACHINE_CONFIG_END |
| 86 | |
| 87 | |
| 88 | |
| 89 | /*************************************************************************** |
| 90 | |
| 91 | Game driver(s) |
| 92 | |
| 93 | ***************************************************************************/ |
| 94 | |
| 95 | ROM_START( tmtennis ) |
| 96 | ROM_REGION( 0x0400, "maincpu", 0 ) |
| 97 | ROM_LOAD( "d552c-048", 0x0000, 0x0400, CRC(78702003) SHA1(4d427d4dbeed901770c682338867f58c7b54eee3) ) |
| 98 | ROM_END |
| 99 | |
| 100 | |
| 101 | CONS( 1980, tmtennis, 0, 0, tmtennis, tmtennis, driver_device, 0, "Tomy", "Tomytronic Tennis", GAME_NOT_WORKING | GAME_SUPPORTS_SAVE ) |