mirror of
https://github.com/holub/mame
synced 2025-06-30 16:00:01 +03:00
fix upd7759 sample triggering and reset control (#10322)
This commit is contained in:
parent
f31ca341bd
commit
b6234ed1f1
@ -802,8 +802,7 @@ void bfm_sc2_state::volume_override_w(uint8_t data)
|
|||||||
|
|
||||||
void bfm_sc2_state::nec_reset_w(uint8_t data)
|
void bfm_sc2_state::nec_reset_w(uint8_t data)
|
||||||
{
|
{
|
||||||
m_upd7759->start_w(0);
|
m_upd7759->reset_w(BIT(data, 0));
|
||||||
m_upd7759->reset_w(data != 0);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////
|
||||||
@ -817,9 +816,9 @@ void bfm_sc2_state::nec_latch_w(uint8_t data)
|
|||||||
|
|
||||||
m_upd7759->set_rom_bank(bank);
|
m_upd7759->set_rom_bank(bank);
|
||||||
|
|
||||||
m_upd7759->port_w(data & 0x3f); // setup sample
|
m_upd7759->port_w(data & 0x7f); // setup sample
|
||||||
m_upd7759->start_w(1);
|
|
||||||
m_upd7759->start_w(0);
|
m_upd7759->start_w(0);
|
||||||
|
m_upd7759->start_w(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////
|
||||||
|
Loading…
Reference in New Issue
Block a user