diff options
author | cam900 <dbtlrchl@naver.com> | 2019-04-01 05:57:01 +0900 |
---|---|---|
committer | R. Belmont <rb6502@users.noreply.github.com> | 2019-03-31 16:57:01 -0400 |
commit | 060abb5682f7793f9b4c81ab75947e12e7483736 (patch) | |
tree | af7b9477e45f2496116a779c1119c2c110732faf | |
parent | 2dc938da2946b4c61d4fcd69392f1e54cbfdb16f (diff) |
m72.cpp : Fix sample rate for m72 PCBs, Add notes (#4291)
* m72.cpp : Fix sample rate for m72 PCBs, Add notes
* m72.cpp : Fix regression
* m72.cpp : Fix copy-n-paste error
-rw-r--r-- | src/mame/drivers/m72.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/mame/drivers/m72.cpp b/src/mame/drivers/m72.cpp index c1546b33b77..0f28dc9212b 100644 --- a/src/mame/drivers/m72.cpp +++ b/src/mame/drivers/m72.cpp @@ -1863,7 +1863,8 @@ void m72_state::m72_base(machine_config &config) void m72_state::m72(machine_config &config) { m72_base(config); - m_soundcpu->set_periodic_int(FUNC(m72_state::fake_nmi), attotime::from_hz(128*55)); /* clocked by V1? (Vigilante) */ + /* Sample rate verified (Gallop : https://youtu.be/aozd0dbPzOw) */ + m_soundcpu->set_periodic_int(FUNC(m72_state::fake_nmi), attotime::from_hz(32000000/8/512)); /* IRQs are generated by main Z80 and YM2151 */ } @@ -1913,7 +1914,8 @@ void m72_state::m72_xmultipl(machine_config &config) m72_8751(config); m_maincpu->set_addrmap(AS_PROGRAM, &m72_state::xmultiplm72_map); - m_soundcpu->set_periodic_int(FUNC(m72_state::nmi_line_pulse), attotime::from_hz(128*55)); /* clocked by V1? (Vigilante) */ + /* Sample rate verified (Gallop : https://youtu.be/aozd0dbPzOw) */ + m_soundcpu->set_periodic_int(FUNC(m72_state::nmi_line_pulse), attotime::from_hz(32000000/8/512)); /* IRQs are generated by main Z80 and YM2151 */ } @@ -1922,7 +1924,8 @@ void m72_state::m72_dbreed(machine_config &config) m72_base(config); m_maincpu->set_addrmap(AS_PROGRAM, &m72_state::dbreedm72_map); - m_soundcpu->set_periodic_int(FUNC(m72_state::nmi_line_pulse), attotime::from_hz(128*55)); /* clocked by V1? (Vigilante) */ + /* Sample rate verified (Gallop : https://youtu.be/aozd0dbPzOw) */ + m_soundcpu->set_periodic_int(FUNC(m72_state::nmi_line_pulse), attotime::from_hz(32000000/8/512)); /* IRQs are generated by main Z80 and YM2151 */ } |