Previous 15994 Revisions Next

r3415 Wednesday 8th October, 2008 at 14:01:30 UTC by Dirk Verwiebe
[Mephisto 16/32 Bit]
Removed PULSE_LINE to make code MAME conform.
[src/mess/drivers]glasgow.c

src/mess/drivers/glasgow.c
r3414r3415
5757
5858static BOARD_FIELD m_board[8][8];
5959
60static int irq_edge=0x00;
6061
62
6163// Used by Glasgow and Dallas
6264static WRITE16_HANDLER( write_lcd_gg )
6365{
r3414r3415
401403static TIMER_CALLBACK( update_nmi )
402404{
403405   // if (irq_flag==0)cpunum_set_input_line_and_vector(machine, 0,  MC68000_IRQ_7, PULSE_LINE, MC68000_INT_ACK_AUTOVECTOR);
404   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;
405408}
406409
407410static TIMER_CALLBACK( update_nmi32 )
408411{
409   cpunum_set_input_line_and_vector(machine, 0,  MC68020_IRQ_7, PULSE_LINE, MC68020_INT_ACK_AUTOVECTOR);
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;
410414}
411415
412416static MACHINE_START( glasgow )
r3414r3415
414418   key_selector = 0;
415419   irq_flag = 0;
416420   lcd_shift_counter = 3;
417   timer_pulse(ATTOTIME_IN_HZ(50), NULL, 0, update_nmi);
421   timer_pulse(ATTOTIME_IN_HZ(100), NULL, 0, update_nmi);
418422   beep_set_frequency(0, 44);
419423}
420424

Previous 15994 Revisions Next


© 1998-2018 The MESS Team