diff options
author | cracyc <cracyc@users.noreply.github.com> | 2018-05-27 09:20:55 -0500 |
---|---|---|
committer | cracyc <cracyc@users.noreply.github.com> | 2018-05-27 09:23:25 -0500 |
commit | 548a95a220c6b9f389ea31b0a35f8cca59598603 (patch) | |
tree | ecdb79f689e62556f929d6702273e69fe373706c /src/devices/sound | |
parent | e18205b832726f29329e3b603f4c815720a70a8b (diff) |
ad1848: oops (nw)
Diffstat (limited to 'src/devices/sound')
-rw-r--r-- | src/devices/sound/ad1848.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/devices/sound/ad1848.cpp b/src/devices/sound/ad1848.cpp index adaca1d13e8..a7d928d70b3 100644 --- a/src/devices/sound/ad1848.cpp +++ b/src/devices/sound/ad1848.cpp @@ -93,14 +93,14 @@ WRITE8_MEMBER(ad1848_device::write) switch(m_addr) { case 8: - if(m_mce) + if(!m_mce) return; m_regs.dform &= 0x7f; break; case 9: { m_play = (data & 1) ? true : false; - attotime rate = m_play ? attotime::from_hz(((m_regs.dform & 1) ? XTAL(24'576'000) : XTAL(16'934'400)) + attotime rate = m_play ? attotime::from_hz(((m_regs.dform & 1) ? 16.9344_MHz_XTAL : 24.576_MHz_XTAL) / div_factor[(m_regs.dform >> 1) & 7]) : attotime::never; m_timer->adjust(rate, 0 , rate); m_drq_cb(m_play ? ASSERT_LINE : CLEAR_LINE); |