summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2020-08-30 19:04:05 -0400
committer AJR <ajrhacker@users.noreply.github.com>2020-08-30 19:04:05 -0400
commit7831b5657b1046936626fb21b010ead919848533 (patch)
treed7b7065fd87e1b9df90652492858d30e143df38a
parentd068c511dcb595f552710a434e73a2e87e6d7e0d (diff)
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.
-rw-r--r--src/mame/machine/namco51.cpp6
-rw-r--r--src/mame/machine/namco51.h1
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 );