Previous 15994 Revisions Next

r5345 Monday 3rd August, 2009 at 18:53:42 UTC by Wilbert Pol
[IBMPCJR] Fixed setting and clearing of the floppy controller watchdog interrupt signal.
[src/mess/machine]pc_fdc.c

src/mess/machine/pc_fdc.c
r5344r5345
348348static TIMER_CALLBACK( watchdog_timeout )
349349{
350350   /* Trigger a watchdog timeout signal */
351   if ( fdc->fdc_interface.pc_fdc_interrupt )
351   if ( fdc->fdc_interface.pc_fdc_interrupt && ( fdc->digital_output_register & 0x20 )  )
352352   {
353353      fdc->fdc_interface.pc_fdc_interrupt(machine, 1 );
354   }
355   else
356   {
354357      fdc->fdc_interface.pc_fdc_interrupt(machine, 0 );
355358   }
356359}
r5344r5345
375378   if ( ! ( data & 0x20 ) )
376379   {
377380      timer_adjust_oneshot( fdc->watchdog, attotime_never, 0 );
381      if ( fdc->fdc_interface.pc_fdc_interrupt )
382      {
383         fdc->fdc_interface.pc_fdc_interrupt(machine, 0 );
384      }
378385   } else {
379386      /* Check for 1->0 watchdog trigger */
380387      if ( ( fdc->digital_output_register & 0x40 ) && ! ( data & 0x40 ) )

Previous 15994 Revisions Next


© 1998-2018 The MESS Team