From 9c5ee124cbd461e2595c28089feb609b2fbb5ec3 Mon Sep 17 00:00:00 2001 From: algestam Date: Sat, 31 Aug 2019 17:20:51 +0200 Subject: New working machine added (#5574) ---------- Game & Watch: Vermin [algestam, hap, Mr. Do, Sean Riddle] --- src/mame/drivers/hh_sm510.cpp | 86 ++++++++++++++++++++++++++++++++++++++++++- src/mame/mame.lst | 1 + 2 files changed, 85 insertions(+), 2 deletions(-) diff --git a/src/mame/drivers/hh_sm510.cpp b/src/mame/drivers/hh_sm510.cpp index f9c2eb3ed9a..c032f1b90be 100644 --- a/src/mame/drivers/hh_sm510.cpp +++ b/src/mame/drivers/hh_sm510.cpp @@ -45,7 +45,7 @@ Serial Series MCU Title --------------------------------------------- AC-01 s SM5A Ball (aka Toss-Up) FL-02* s SM5A? Flagman -MT-03* s SM5A? Vermin (aka The Exterminator) +MT-03 s SM5A Vermin (aka The Exterminator) RC-04* s SM5A? Fire (aka Fireman Fireman) IP-05* s SM5A? Judge MN-06* g SM5A? Manhole @@ -1295,6 +1295,87 @@ ROM_END +/*************************************************************************** + + Nintendo Game & Watch: Vermin (model MT-03) + * PCB label MT-03 + * Sharp SM5A label MT-03 5012 (no decap) + * lcd screen with custom segments, 1-bit sound + + In the USA, it was distributed as The Exterminator by Mego under their Time-Out series. + +***************************************************************************/ + +class gnw_vermin_state : public hh_sm510_state +{ +public: + gnw_vermin_state(const machine_config &mconfig, device_type type, const char *tag) : + hh_sm510_state(mconfig, type, tag) + { + inp_fixed_last(); + } + + void gnw_vermin(machine_config &config); +}; + +// config + +static INPUT_PORTS_START( gnw_vermin ) + PORT_START("IN.0") + PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SELECT ) PORT_CHANGED_CB(input_changed) PORT_NAME("Time") + PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) PORT_CHANGED_CB(input_changed) PORT_NAME("Game B") + PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_START1 ) PORT_CHANGED_CB(input_changed) PORT_NAME("Game A") + PORT_CONFNAME( 0x08, 0x00, "Infinite Lives (Cheat)") // factory test, unpopulated on PCB -- disable after boot + PORT_CONFSETTING( 0x00, DEF_STR( Off ) ) + PORT_CONFSETTING( 0x08, DEF_STR( On ) ) + + PORT_START("BA") + PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_CHANGED_CB(input_changed) PORT_16WAY + + PORT_START("B") + PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_CHANGED_CB(input_changed) PORT_16WAY + + PORT_START("ACL") + PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SERVICE1 ) PORT_CHANGED_CB(acl_button) PORT_NAME("ACL") +INPUT_PORTS_END + +void gnw_vermin_state::gnw_vermin(machine_config &config) +{ + /* basic machine hardware */ + SM5A(config, m_maincpu); + m_maincpu->set_r_mask_option(sm510_base_device::RMASK_DIRECT); // confirmed + m_maincpu->write_segs().set(FUNC(hh_sm510_state::sm500_lcd_segment_w)); + m_maincpu->read_k().set(FUNC(hh_sm510_state::input_r)); + m_maincpu->write_r().set(FUNC(hh_sm510_state::piezo_r1_w)); + m_maincpu->read_ba().set_ioport("BA"); + m_maincpu->read_b().set_ioport("B"); + + /* video hardware */ + screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_SVG)); + screen.set_refresh_hz(60); + screen.set_size(1650, 1080); + screen.set_visarea_full(); + + /* sound hardware */ + SPEAKER(config, "mono").front_center(); + SPEAKER_SOUND(config, m_speaker); + m_speaker->add_route(ALL_OUTPUTS, "mono", 0.25); +} + +// roms + +ROM_START( gnw_vermin ) + ROM_REGION( 0x1000, "maincpu", 0 ) + ROM_LOAD( "mt-03", 0x0000, 0x0740, CRC(f8493177) SHA1(d629432ef8e9fbd7bbdc3fbeb45d9bd70d9d571b) ) + + ROM_REGION( 105437, "screen", 0) + ROM_LOAD( "gnw_vermin.svg", 0, 105437, CRC(c0fc6c40) SHA1(fc64292185aa3d0c92ddfce9227722a17aa5d43f) ) +ROM_END + + + + + /*************************************************************************** Nintendo Game & Watch: Parachute (model PR-21) @@ -9739,7 +9820,8 @@ CONS( 1991, kbucky, 0, 0, kbucky, kbucky, kbucky_state, CONS( 1991, kgarfld, 0, 0, kgarfld, kgarfld, kgarfld_state, empty_init, "Konami", "Garfield (handheld)", MACHINE_SUPPORTS_SAVE ) // Nintendo G&W: silver/gold (initial series is uncategorized, "silver" was made up later) -CONS( 1980, gnw_ball, 0, 0, gnw_ball, gnw_ball, gnw_ball_state, empty_init, "Nintendo", "Game & Watch: Ball", MACHINE_SUPPORTS_SAVE) +CONS( 1980, gnw_ball, 0, 0, gnw_ball, gnw_ball, gnw_ball_state, empty_init, "Nintendo", "Game & Watch: Ball", MACHINE_SUPPORTS_SAVE ) +CONS( 1980, gnw_vermin, 0, 0, gnw_vermin, gnw_vermin, gnw_vermin_state, empty_init, "Nintendo", "Game & Watch: Vermin", MACHINE_SUPPORTS_SAVE ) // Nintendo G&W: wide screen CONS( 1981, gnw_pchute, 0, 0, gnw_pchute, gnw_pchute, gnw_pchute_state, empty_init, "Nintendo", "Game & Watch: Parachute", MACHINE_SUPPORTS_SAVE ) diff --git a/src/mame/mame.lst b/src/mame/mame.lst index 37bd0074e5a..c71b93e55be 100644 --- a/src/mame/mame.lst +++ b/src/mame/mame.lst @@ -15329,6 +15329,7 @@ gnw_squish // Nintendo gnw_stennis // Nintendo gnw_tbridge // Nintendo gnw_tfish // Nintendo +gnw_vermin // Nintendo gnw_zelda // Nintendo kbilly // Konami kblades // Konami -- cgit v1.2.3