- champbas.cpp: mapped some areas and added some logging for tbasebal

- taito_f2.cpp: fixed MT08053
This commit is contained in:
Ivan Vangelista 2021-08-17 19:22:53 +02:00
parent 5a7d6600c9
commit 87993c3ba1
2 changed files with 15 additions and 2 deletions

View File

@ -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); });
}

View File

@ -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")