Previous 15994 Revisions Next

r15400 Monday 4th June, 2012 at 09:38:05 UTC by Miodrag Milanović
putting this back, causing more issues then fix (nw)
[src/emu/machine]8237dma.c

src/emu/machine/8237dma.c
r15399r15400
304304         m_out_hrq_func(m_hrq);
305305         m_state = DMA8237_S0;
306306
307         //m_timer->enable( true );
308         m_timer->adjust(attotime::from_hz(clock()), 0, attotime::from_hz(clock()));
307         m_timer->enable( true );
309308      }
310309      else if (m_command == 3 && (m_drq & 1))
311310      {
r15399r15400
315314      }
316315      else
317316      {
318         //m_timer->enable( false );
319         m_timer->reset();
317         m_timer->enable( false );
320318      }
321319      break;
322320   }
r15399r15400
609607   case 8:
610608      /* DMA command register */
611609      m_command = data;
612//      m_timer->enable( ( m_command & 0x04 ) ? 0 : 1 );
613      if ( m_command & 0x04 )
614         m_timer->reset();
615      else
616         m_timer->adjust(attotime::from_hz(clock()), 0, attotime::from_hz(clock()));
610      m_timer->enable( ( m_command & 0x04 ) ? 0 : 1 );
617611      break;
618612
619613   case 9:
r15399r15400
623617      if ( data & 0x04 )
624618      {
625619         m_drq |= 0x01 << channel;
626         //m_timer->enable( ( m_command & 0x04 ) ? 0 : 1 );
627         if ( m_command & 0x04 )
628            m_timer->reset();
629         else
630            m_timer->adjust(attotime::from_hz(clock()), 0, attotime::from_hz(clock()));
631         
620         m_timer->enable( ( m_command & 0x04 ) ? 0 : 1 );
632621      }
633622      else
634623      {
r15399r15400
703692      m_drq &= ~( 0x01 << channel );
704693   }
705694
706   //m_timer->enable( ( m_command & 0x04 ) ? 0 : 1 );
707   if ( m_command & 0x04 )
708      m_timer->reset();
709   else
710      m_timer->adjust(attotime::from_hz(clock()), 0, attotime::from_hz(clock()));
711
695   m_timer->enable( ( m_command & 0x04 ) ? 0 : 1 );
712696}
713697
714698

Previous 15994 Revisions Next


© 1998-2018 The MESS Team