summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/audio/namco52.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/audio/namco52.cpp')
-rw-r--r--src/mame/audio/namco52.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/mame/audio/namco52.cpp b/src/mame/audio/namco52.cpp
index 0b960a69604..557c2f74148 100644
--- a/src/mame/audio/namco52.cpp
+++ b/src/mame/audio/namco52.cpp
@@ -116,9 +116,14 @@ void namco_52xx_device::write(uint8_t data)
// TODO: should use chip_select line for this
m_cpu->set_input_line(0, ASSERT_LINE);
- machine().scheduler().timer_set(attotime::from_usec(100), timer_expired_delegate(FUNC(namco_52xx_device::irq_clear),this), 0);
+ machine().scheduler().timer_set(m_irq_duration, timer_expired_delegate(FUNC(namco_52xx_device::irq_clear),this), 0);
}
+WRITE_LINE_MEMBER( namco_52xx_device::chip_select )
+{
+ // TODO: broken sound when using this
+ //m_cpu->set_input_line(0, state);
+}
TIMER_CALLBACK_MEMBER( namco_52xx_device::external_clock_pulse )
{
@@ -143,6 +148,7 @@ namco_52xx_device::namco_52xx_device(const machine_config &mconfig, const char *
: device_t(mconfig, NAMCO_52XX, tag, owner, clock),
m_cpu(*this, "mcu"),
m_discrete(*this, finder_base::DUMMY_TAG),
+ m_irq_duration(attotime::from_usec(100)),
m_basenode(0),
m_extclock(0),
m_romread(*this),