Previous 15994 Revisions Next

r3424 Thursday 9th October, 2008 at 17:53:07 UTC by Dirk Verwiebe
[Mephisto 16/32 Bit] Changed IRQ handling again.
[src/mess/drivers]glasgow.c

src/mess/drivers/glasgow.c
r3423r3424
402402
403403static TIMER_CALLBACK( update_nmi )
404404{
405   // if (irq_flag==0)cpunum_set_input_line_and_vector(machine, 0,  MC68000_IRQ_7, PULSE_LINE, MC68000_INT_ACK_AUTOVECTOR);
406   cpunum_set_input_line_and_vector(machine, 0,  MC68000_IRQ_7,irq_edge&0xff ? CLEAR_LINE:ASSERT_LINE, MC68000_INT_ACK_AUTOVECTOR);
407   irq_edge=~irq_edge;
405   //cpunum_set_input_line_and_vector(machine, 0,  MC68000_IRQ_7,irq_edge&0xff ? CLEAR_LINE:ASSERT_LINE, MC68000_INT_ACK_AUTOVECTOR);
406      cpunum_set_input_line_and_vector(machine, 0,  MC68000_IRQ_7,ASSERT_LINE, MC68000_INT_ACK_AUTOVECTOR);
407      cpunum_set_input_line_and_vector(machine, 0,  MC68000_IRQ_7,CLEAR_LINE, MC68000_INT_ACK_AUTOVECTOR);
408      irq_edge=~irq_edge;
408409}
409410
410411static TIMER_CALLBACK( update_nmi32 )
411412{
412   cpunum_set_input_line_and_vector(machine, 0,  MC68020_IRQ_7, irq_edge&0xff ? CLEAR_LINE:ASSERT_LINE, MC68020_INT_ACK_AUTOVECTOR);
413  irq_edge=~irq_edge;
413   // cpunum_set_input_line_and_vector(machine, 0,  MC68020_IRQ_7, irq_edge&0xff ? CLEAR_LINE:ASSERT_LINE, MC68020_INT_ACK_AUTOVECTOR);
414      cpunum_set_input_line_and_vector(machine, 0,  MC68020_IRQ_7, ASSERT_LINE, MC68020_INT_ACK_AUTOVECTOR);
415      cpunum_set_input_line_and_vector(machine, 0,  MC68020_IRQ_7, CLEAR_LINE, MC68020_INT_ACK_AUTOVECTOR);
416    irq_edge=~irq_edge;
414417}
415418
416419static MACHINE_START( glasgow )
r3423r3424
418421   key_selector = 0;
419422   irq_flag = 0;
420423   lcd_shift_counter = 3;
421   timer_pulse(ATTOTIME_IN_HZ(100), NULL, 0, update_nmi);
424   timer_pulse(ATTOTIME_IN_HZ(50), NULL, 0, update_nmi);
422425   beep_set_frequency(0, 44);
423426}
424427

Previous 15994 Revisions Next


© 1998-2018 The MESS Team