src/mess/drivers/glasgow.c
| r3423 | r3424 | |
| 402 | 402 | |
| 403 | 403 | static TIMER_CALLBACK( update_nmi ) |
| 404 | 404 | { |
| 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; |
| 408 | 409 | } |
| 409 | 410 | |
| 410 | 411 | static TIMER_CALLBACK( update_nmi32 ) |
| 411 | 412 | { |
| 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; |
| 414 | 417 | } |
| 415 | 418 | |
| 416 | 419 | static MACHINE_START( glasgow ) |
| r3423 | r3424 | |
| 418 | 421 | key_selector = 0; |
| 419 | 422 | irq_flag = 0; |
| 420 | 423 | 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); |
| 422 | 425 | beep_set_frequency(0, 44); |
| 423 | 426 | } |
| 424 | 427 | |