Previous 199869 Revisions Next

r21905 Sunday 17th March, 2013 at 12:16:47 UTC by Robbbert
aftor - fixed 6809 regression (slow sound)
[src/mame/drivers]wico.c

trunk/src/mame/drivers/wico.c
r21904r21905
375375TIMER_DEVICE_CALLBACK_MEMBER( wico_state::irq_housekeeping )
376376{
377377   if (m_zcen)
378      generic_pulse_irq_line(m_hcpu, M6809_IRQ_LINE,1);
378      m_hcpu->set_input_line(M6809_IRQ_LINE, HOLD_LINE);
379379}
380380
381381TIMER_DEVICE_CALLBACK_MEMBER( wico_state::firq_housekeeping )
382382{
383383   if (m_gten)
384      generic_pulse_irq_line(m_hcpu, M6809_FIRQ_LINE,1);
384      m_hcpu->set_input_line(M6809_FIRQ_LINE, HOLD_LINE);
385385
386386   // Gen. timer irq of command CPU kicks in every 4 interrupts of this timer
387387   m_firqtimer++;
388388   if (m_firqtimer > 3) // divided by 4 by U2 74LS393.
389389   {
390      //m_cpu2->set_input_line(M6809_IRQ_LINE, ASSERT_LINE);
391      generic_pulse_irq_line(m_ccpu, M6809_IRQ_LINE,1);
390      m_ccpu->set_input_line(M6809_IRQ_LINE, HOLD_LINE);
392391      m_firqtimer = 0;
393392   }
394393}

Previous 199869 Revisions Next


© 1997-2024 The MAME Team