diff options
author | Paul-Arnold <98924583+Paul-Arnold@users.noreply.github.com> | 2022-09-10 17:12:59 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-10 12:12:59 -0400 |
commit | b6234ed1f1d24d9a4eb615f7e546f61635e9a9eb (patch) | |
tree | f6ce8b8083bcb1fb51c279336ccae1e6f82a7b8a /src/mame/bfm/bfm_sc2.cpp | |
parent | f31ca341bdeec34ae6a9e4bf0aa265ad6d1c91c0 (diff) |
fix upd7759 sample triggering and reset control (#10322)
Diffstat (limited to 'src/mame/bfm/bfm_sc2.cpp')
-rw-r--r-- | src/mame/bfm/bfm_sc2.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mame/bfm/bfm_sc2.cpp b/src/mame/bfm/bfm_sc2.cpp index bf74d9923df..214af05eacd 100644 --- a/src/mame/bfm/bfm_sc2.cpp +++ b/src/mame/bfm/bfm_sc2.cpp @@ -802,8 +802,7 @@ void bfm_sc2_state::volume_override_w(uint8_t data) void bfm_sc2_state::nec_reset_w(uint8_t data) { - m_upd7759->start_w(0); - m_upd7759->reset_w(data != 0); + m_upd7759->reset_w(BIT(data, 0)); } /////////////////////////////////////////////////////////////////////////// @@ -817,9 +816,9 @@ void bfm_sc2_state::nec_latch_w(uint8_t data) m_upd7759->set_rom_bank(bank); - m_upd7759->port_w(data & 0x3f); // setup sample - m_upd7759->start_w(1); + m_upd7759->port_w(data & 0x7f); // setup sample m_upd7759->start_w(0); + m_upd7759->start_w(1); } /////////////////////////////////////////////////////////////////////////// |