diff options
-rw-r--r-- | src/mame/machine/namco51.cpp | 6 | ||||
-rw-r--r-- | src/mame/machine/namco51.h | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/mame/machine/namco51.cpp b/src/mame/machine/namco51.cpp index c21a0e17b54..fb4965cfd5f 100644 --- a/src/mame/machine/namco51.cpp +++ b/src/mame/machine/namco51.cpp @@ -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)); } //------------------------------------------------- diff --git a/src/mame/machine/namco51.h b/src/mame/machine/namco51.h index 4f8740e1f1c..392e94c735f 100644 --- a/src/mame/machine/namco51.h +++ b/src/mame/machine/namco51.h @@ -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 ); |