namco51: Reimplement outputs that were accidentally disabled when device switched to using low-level emulation. This restores start LEDs and coin lockouts for various games in galaga.cpp and polepos.cpp.

This commit is contained in:
AJR 2020-08-30 19:04:05 -04:00
parent d068c511dc
commit 7831b5657b
2 changed files with 7 additions and 0 deletions

View File

@ -137,6 +137,11 @@ void namco_51xx_device::O_w(uint8_t data)
m_portO = (m_portO & 0xf0) | (out);
}
void namco_51xx_device::P_w(uint8_t data)
{
m_out(data);
}
/***************************************************************************
DEVICE INTERFACE
***************************************************************************/
@ -189,6 +194,7 @@ void namco_51xx_device::device_add_mconfig(machine_config &config)
m_cpu->read_r<2>().set(FUNC(namco_51xx_device::R2_r));
m_cpu->read_r<3>().set(FUNC(namco_51xx_device::R3_r));
m_cpu->write_o().set(FUNC(namco_51xx_device::O_w));
m_cpu->write_p().set(FUNC(namco_51xx_device::P_w));
}
//-------------------------------------------------

View File

@ -45,6 +45,7 @@ private:
uint8_t R2_r();
uint8_t R3_r();
void O_w(uint8_t data);
void P_w(uint8_t data);
TIMER_CALLBACK_MEMBER( rw_sync );
TIMER_CALLBACK_MEMBER( write_sync );