From 61bb7c3123c78f22761bd892d160dd219bfc8855 Mon Sep 17 00:00:00 2001 From: algestam Date: Tue, 23 May 2023 12:17:44 +0200 Subject: [PATCH] New working machine added (#11268) ---------- Teenage Mutant Ninja Turtles Basketball (Konami handheld) [algestam, Sean Riddle, Mr. Do] --- src/mame/handheld/hh_sm510.cpp | 65 ++++++++++++++++++++++++++++++++++ src/mame/mame.lst | 1 + 2 files changed, 66 insertions(+) diff --git a/src/mame/handheld/hh_sm510.cpp b/src/mame/handheld/hh_sm510.cpp index 443a56628b0..2af6f9a2d79 100644 --- a/src/mame/handheld/hh_sm510.cpp +++ b/src/mame/handheld/hh_sm510.cpp @@ -5608,6 +5608,70 @@ ROM_END +/*************************************************************************** + + Konami Teenage Mutant Ninja Turtles Basketball + * PCB label: BH019 + * Sharp SM511 under epoxy (die label KMS73B, 793) + * lcd screen with custom segments, 1-bit sound + +***************************************************************************/ + +class ktmntbb_state : public hh_sm510_state +{ +public: + ktmntbb_state(const machine_config &mconfig, device_type type, const char *tag) : + hh_sm510_state(mconfig, type, tag) + { } + + void ktmntbb(machine_config &config); +}; + +// config + +static INPUT_PORTS_START( ktmntbb ) + PORT_START("IN.0") // S1 + PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_CHANGED_CB(input_changed) + PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_CHANGED_CB(input_changed) + PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_CHANGED_CB(input_changed) + PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_CHANGED_CB(input_changed) + + PORT_START("IN.1") // S2 + PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_POWER_OFF ) PORT_CHANGED_CB(input_changed) + PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_VOLUME_DOWN ) PORT_CHANGED_CB(input_changed) PORT_NAME("Sound") + PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_SELECT ) PORT_CHANGED_CB(input_changed) PORT_NAME("Pause") + PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_START ) PORT_CHANGED_CB(input_changed) PORT_NAME("Power On/Start") + + PORT_START("IN.2") // S3 + PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_CHANGED_CB(input_changed) PORT_NAME("Shot") + PORT_BIT( 0x07, IP_ACTIVE_HIGH, IPT_UNUSED ) + + PORT_START("ACL") + PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SERVICE1 ) PORT_CHANGED_CB(acl_button) PORT_NAME("All Clear") +INPUT_PORTS_END + +void ktmntbb_state::ktmntbb(machine_config &config) +{ + sm511_common(config, 1466, 1080); +} + +// roms + +ROM_START( ktmntbb ) + ROM_REGION( 0x1000, "maincpu", 0 ) + ROM_LOAD( "793.program", 0x0000, 0x1000, CRC(0973b329) SHA1(1c4161e5c53f6c6dd9752a228f361cf053f181f4) ) + + ROM_REGION( 0x100, "maincpu:melody", 0 ) + ROM_LOAD( "793.melody", 0x000, 0x100, CRC(cddefb96) SHA1(e9b6d3947c415a3ed520a3dab66a381159dfd79b) ) + + ROM_REGION( 873514, "screen", 0) + ROM_LOAD( "ktmntbb.svg", 0, 873514, CRC(808148a2) SHA1(14a288c77bc519b0385dfa9da4e965d0ea0dfec9) ) +ROM_END + + + + + /******************************************************************************* Konami Bucky O'Hare @@ -11069,6 +11133,7 @@ SYST( 1989, knascar, 0, 0, knascar, knascar, knasc SYST( 1989, kblades, 0, 0, kblades, kblades, kblades_state, empty_init, "Konami", "Blades of Steel (handheld)", MACHINE_SUPPORTS_SAVE | MACHINE_REQUIRES_ARTWORK ) SYST( 1989, knfl, 0, 0, knfl, knfl, knfl_state, empty_init, "Konami", "NFL Football (Konami, handheld)", MACHINE_SUPPORTS_SAVE | MACHINE_REQUIRES_ARTWORK ) SYST( 1991, ktmnt3, 0, 0, ktmnt3, ktmnt3, ktmnt3_state, empty_init, "Konami", "Teenage Mutant Ninja Turtles 3: Shredder's Last Stand (handheld)", MACHINE_SUPPORTS_SAVE | MACHINE_REQUIRES_ARTWORK ) +SYST( 1991, ktmntbb, 0, 0, ktmntbb, ktmntbb, ktmntbb_state, empty_init, "Konami", "Teenage Mutant Ninja Turtles Basketball (handheld)", MACHINE_SUPPORTS_SAVE | MACHINE_REQUIRES_ARTWORK ) SYST( 1991, kbucky, 0, 0, kbucky, kbucky, kbucky_state, empty_init, "Konami", "Bucky O'Hare (handheld)", MACHINE_SUPPORTS_SAVE | MACHINE_REQUIRES_ARTWORK ) SYST( 1991, kgarfld, 0, 0, kgarfld, kgarfld, kgarfld_state, empty_init, "Konami", "Garfield (Konami)", MACHINE_SUPPORTS_SAVE | MACHINE_REQUIRES_ARTWORK ) diff --git a/src/mame/mame.lst b/src/mame/mame.lst index cbd513d6820..b12be92b99b 100755 --- a/src/mame/mame.lst +++ b/src/mame/mame.lst @@ -18846,6 +18846,7 @@ krybolov // Elektronika kskatedie // Konami ktmnt // Konami ktmnt3 // Konami +ktmntbb // Konami ktopgun // Konami kvakazad // Elektronika morataka // Elektronika