summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Ivan Vangelista <mesgnet@yahoo.it>2021-08-17 19:22:53 +0200
committer Ivan Vangelista <mesgnet@yahoo.it>2021-08-17 19:22:53 +0200
commit87993c3ba10f0d4b65fb2fc7e9d3140feff26823 (patch)
treef00961f543a41a298165b7a57c6f2b3c7e4579dc
parent5a7d6600c92b7653523dc640d376da4cf90781ee (diff)
- champbas.cpp: mapped some areas and added some logging for tbasebal
- taito_f2.cpp: fixed MT08053
-rw-r--r--src/mame/drivers/champbas.cpp13
-rw-r--r--src/mame/drivers/taito_f2.cpp4
2 files changed, 15 insertions, 2 deletions
diff --git a/src/mame/drivers/champbas.cpp b/src/mame/drivers/champbas.cpp
index 082ef6625f1..76d74bf4829 100644
--- a/src/mame/drivers/champbas.cpp
+++ b/src/mame/drivers/champbas.cpp
@@ -226,6 +226,8 @@ void champbas_state::champbb2j_map(address_map &map)
void champbas_state::tbasebal_map(address_map &map)
{
champbas_map(map);
+ map(0x6000, 0x63ff).ram();
+ map(0x6800, 0x6fff).rom();
map(0x7800, 0x7fff).rom();
}
@@ -650,7 +652,16 @@ void champbas_state::tbasebal(machine_config &config)
/* basic machine hardware */
m_maincpu->set_addrmap(AS_PROGRAM, &champbas_state::tbasebal_map);
- M68705P3(config, "mcu", XTAL(18'432'000)/6); // ?Mhz
+ m_mainlatch->q_out_cb<6>().set([this](int state){ logerror("%s latch bit 6 w: %02x\n", machine().describe_context(), state); }); // to M68705? the code here seems the same as champbb2
+ m_mainlatch->q_out_cb<7>().set([this](int state){ logerror("%s latch bit 7 w: %02x\n", machine().describe_context(), state); }); // "
+
+ m68705p_device &mcu(M68705P3(config, "mcu", XTAL(18'432'000) / 6)); // ?Mhz
+ mcu.porta_r().set_log("MCU port A r");
+ mcu.porta_w().set([this](uint8_t data){ logerror("%s MCU port A w: %02x\n", machine().describe_context(), data); });
+ mcu.portb_r().set_log("MCU port B r");
+ mcu.portb_w().set([this](uint8_t data){ logerror("%s MCU port B w: %02x\n", machine().describe_context(), data); });
+ mcu.portc_r().set_log("MCU port C r");
+ mcu.portc_w().set([this](uint8_t data){ logerror("%s MCU port C w: %02x\n", machine().describe_context(), data); });
}
diff --git a/src/mame/drivers/taito_f2.cpp b/src/mame/drivers/taito_f2.cpp
index f637c6b6fbd..71714997687 100644
--- a/src/mame/drivers/taito_f2.cpp
+++ b/src/mame/drivers/taito_f2.cpp
@@ -2562,7 +2562,9 @@ static INPUT_PORTS_START( yuyugogo )
PORT_DIPUNUSED_DIPLOC( 0x08, 0x08, "SW2:4" )
PORT_DIPUNUSED_DIPLOC( 0x10, 0x10, "SW2:5" )
PORT_DIPUNUSED_DIPLOC( 0x20, 0x20, "SW2:6" )
- PORT_DIPUNUSED_DIPLOC( 0x40, 0x40, "SW2:7" )
+ PORT_DIPNAME( 0x40, 0x40, DEF_STR( Allow_Continue ) ) PORT_DIPLOCATION("SW2:7")
+ PORT_DIPSETTING( 0x00, DEF_STR( Off ) )
+ PORT_DIPSETTING( 0x40, DEF_STR( On ) )
PORT_DIPUNUSED_DIPLOC( 0x80, 0x80, "SW2:8" )
PORT_START("IN0")