From 5a8f5628d27695869b3defb483afa9e6fee23583 Mon Sep 17 00:00:00 2001 From: Ivan Vangelista Date: Tue, 15 Jun 2021 06:28:52 +0200 Subject: mitchell.cpp: fixed MT08007 --- src/mame/drivers/mitchell.cpp | 54 +++++++++++++++++++++---------------------- src/mame/drivers/sengokmj.cpp | 12 +++++----- 2 files changed, 32 insertions(+), 34 deletions(-) diff --git a/src/mame/drivers/mitchell.cpp b/src/mame/drivers/mitchell.cpp index 0b5762b5261..683edf13229 100644 --- a/src/mame/drivers/mitchell.cpp +++ b/src/mame/drivers/mitchell.cpp @@ -376,7 +376,7 @@ void mitchell_state::spangbl_io_map(address_map &map) map(0x00, 0x02).r(FUNC(mitchell_state::input_r)); map(0x00, 0x00).w(FUNC(mitchell_state::pangbl_gfxctrl_w)); /* Palette bank, layer enable, coin counters, more */ map(0x02, 0x02).w(FUNC(mitchell_state::pang_bankswitch_w)); /* Code bank register */ - map(0x03, 0x03).w(m_soundlatch, FUNC(generic_latch_8_device::write)); + map(0x03, 0x03).portr("DSW1").w(m_soundlatch, FUNC(generic_latch_8_device::write)); map(0x05, 0x05).portr("SYS0"); map(0x06, 0x06).nopw(); /* watchdog? irq ack? */ map(0x07, 0x07).w(FUNC(mitchell_state::pang_video_bank_w)); /* Video RAM bank register */ @@ -875,10 +875,35 @@ static INPUT_PORTS_START( spangbl ) PORT_INCLUDE( pang ) PORT_MODIFY("SYS0") + PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) // this bootleg doesn't seem to allow entering test mode. It has a dip bank for settings, instead. PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* unused? */ PORT_MODIFY("IN1") PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNKNOWN ) // must be high for game to boot.. + + PORT_START("DSW1") + PORT_DIPNAME( 0x07, 0x00, DEF_STR( Coinage ) ) PORT_DIPLOCATION("DSW1:6,7,8") + PORT_DIPSETTING( 0x07, DEF_STR( 4C_1C ) ) + PORT_DIPSETTING( 0x06, DEF_STR( 3C_1C ) ) + PORT_DIPSETTING( 0x05, DEF_STR( 2C_1C ) ) + PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) + PORT_DIPSETTING( 0x01, DEF_STR( 1C_2C ) ) + PORT_DIPSETTING( 0x02, DEF_STR( 1C_3C ) ) + PORT_DIPSETTING( 0x03, DEF_STR( 1C_4C ) ) + PORT_DIPSETTING( 0x04, DEF_STR( 1C_6C ) ) + PORT_DIPNAME( 0x18, 0x08, DEF_STR( Lives ) ) PORT_DIPLOCATION("DSW1:4,5") + PORT_DIPSETTING( 0x00, "1" ) + PORT_DIPSETTING( 0x08, "2" ) + PORT_DIPSETTING( 0x10, "3" ) + PORT_DIPSETTING( 0x18, "4" ) + PORT_DIPNAME( 0x60, 0x20, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("DSW1:2,3") + PORT_DIPSETTING( 0x00, DEF_STR( Easy ) ) + PORT_DIPSETTING( 0x20, DEF_STR( Normal ) ) + PORT_DIPSETTING( 0x40, DEF_STR( Difficult ) ) + PORT_DIPSETTING( 0x60, DEF_STR( Very_Difficult ) ) + PORT_DIPNAME( 0x80, 0x80, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("DSW1:1") + PORT_DIPSETTING( 0x80, DEF_STR( On ) ) + PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) INPUT_PORTS_END static INPUT_PORTS_START( mstworld ) @@ -2265,33 +2290,6 @@ ROM_START( spangbl ) ROM_LOAD( "ic125.14", 0x030000, 0x10000, CRC(bd5c2f4b) SHA1(3c71d63637633a98ab513e4336e2954af3f964f4) ) ROM_END -// "spangbl2" -// TODO: There is a bank of 8 dipswitches that needs to be hooked up with this set up: -// ______________________________________________________ -// | | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | -// |--------------------|---|---|---|---|---|---|---|---| -// | 1 Coin - 1 Credit | ON| ON| ON| | | | | | -// | 1 Coin - 2 Credits |OFF| ON| ON| | | | | | -// | 1 Coin - 3 Credits | ON|OFF| ON| | | | | | -// | 1 Coin - 4 Credits |OFF|OFF| ON| | | | | | -// | 1 Coin - 6 Credits | ON| ON|OFF| | | | | | -// | 2 Coin - 1 Credit |OFF| ON|OFF| | | | | | -// | 3 Coin - 1 Credit | ON|OFF|OFF| | | | | | -// | 4 Coin - 1 Credit |OFF|OFF|OFF| | | | | | -// |--------------------|---|---|---|---|---|---|---|---| -// | 1 Player | | | | ON| ON| | | | -// | 2 Players | | | |OFF| ON| | | | -// | 3 Players | | | | ON|OFF| | | | -// | 4 Players | | | |OFF|OFF| | | | -// |--------------------|---|---|---|---|---|---|---|---| -// | Easy | | | | | | ON| ON| | -// | Normal | | | | | |OFF| ON| | -// | Dificult | | | | | | ON|OFF| | -// | Very dificult | | | | | |OFF|OFF| | -// |--------------------|---|---|---|---|---|---|---|---| -// | No demo sounds | | | | | | | | ON| -// | Demo sounds | | | | | | | |OFF| -// |____________________________________________________| ROM_START( spangbl2 ) ROM_REGION( 0x50000*2, "maincpu", ROMREGION_ERASEFF ) // IC2 can be found as 27C512 with 1st and 2nd half identical or as 27C256 diff --git a/src/mame/drivers/sengokmj.cpp b/src/mame/drivers/sengokmj.cpp index 254c0d0139d..e41a04e7316 100644 --- a/src/mame/drivers/sengokmj.cpp +++ b/src/mame/drivers/sengokmj.cpp @@ -9,18 +9,18 @@ driver by Angelo Salese & Pierpaolo Prazzoli Uses the same Seibu custom chips of the D-Con HW. TODO: -- Find what the remaining video C.R.T. registers does; +- Find what the remaining video C.R.T. registers do; - Fix sprites bugs at a start of a play; -- Check NVRAM boudaries; -- How the "SW Service Mode" (press F2 during gameplay) really works (inputs etc)? Nothing mapped works with it... +- Check NVRAM boundaries; +- How does the "SW Service Mode" (press F2 during gameplay) really work (inputs etc)? Nothing mapped works with it... Notes: -- Some strings written in the sound rom: +- Some strings written in the sound ROM: "SENGOKU-MAHJONG Z80 PROGRAM ROM VERSION 1.00 WRITTEN BY K.SAEKI" at location 0x00c0-0x00ff. "Copyright 1990/1991 Sigma" at location 0x770-0x789. - To bypass the startup message, toggle "Reset" dip-switch or reset with F3. -- If the Work RAM is not hooked-up (areas $67xx),a sound sample is played.I can't understand what it says though, - appears to japanese words for "RAM failed". +- If the Work RAM is not hooked-up (areas $67xx), a sound sample is played. I can't understand what it says though, + appears to be the Japanese words for "RAM failed". - Snippets of a non-BET Version are scattered thru the code (for example a credit display). Might be either undumped revision or selectable somehow. -- cgit v1.2.3