mirror of
https://github.com/holub/mame
synced 2025-07-01 16:19:38 +03:00
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:
parent
d068c511dc
commit
7831b5657b
@ -137,6 +137,11 @@ void namco_51xx_device::O_w(uint8_t data)
|
|||||||
m_portO = (m_portO & 0xf0) | (out);
|
m_portO = (m_portO & 0xf0) | (out);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void namco_51xx_device::P_w(uint8_t data)
|
||||||
|
{
|
||||||
|
m_out(data);
|
||||||
|
}
|
||||||
|
|
||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
DEVICE INTERFACE
|
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<2>().set(FUNC(namco_51xx_device::R2_r));
|
||||||
m_cpu->read_r<3>().set(FUNC(namco_51xx_device::R3_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_o().set(FUNC(namco_51xx_device::O_w));
|
||||||
|
m_cpu->write_p().set(FUNC(namco_51xx_device::P_w));
|
||||||
}
|
}
|
||||||
|
|
||||||
//-------------------------------------------------
|
//-------------------------------------------------
|
||||||
|
@ -45,6 +45,7 @@ private:
|
|||||||
uint8_t R2_r();
|
uint8_t R2_r();
|
||||||
uint8_t R3_r();
|
uint8_t R3_r();
|
||||||
void O_w(uint8_t data);
|
void O_w(uint8_t data);
|
||||||
|
void P_w(uint8_t data);
|
||||||
|
|
||||||
TIMER_CALLBACK_MEMBER( rw_sync );
|
TIMER_CALLBACK_MEMBER( rw_sync );
|
||||||
TIMER_CALLBACK_MEMBER( write_sync );
|
TIMER_CALLBACK_MEMBER( write_sync );
|
||||||
|
Loading…
Reference in New Issue
Block a user