src/mess/drivers/glasgow.c
| r3414 | r3415 | |
| 57 | 57 | |
| 58 | 58 | static BOARD_FIELD m_board[8][8]; |
| 59 | 59 | |
| 60 | static int irq_edge=0x00; |
| 60 | 61 | |
| 62 | |
| 61 | 63 | // Used by Glasgow and Dallas |
| 62 | 64 | static WRITE16_HANDLER( write_lcd_gg ) |
| 63 | 65 | { |
| r3414 | r3415 | |
| 401 | 403 | static TIMER_CALLBACK( update_nmi ) |
| 402 | 404 | { |
| 403 | 405 | // 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; |
| 405 | 408 | } |
| 406 | 409 | |
| 407 | 410 | static TIMER_CALLBACK( update_nmi32 ) |
| 408 | 411 | { |
| 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; |
| 410 | 414 | } |
| 411 | 415 | |
| 412 | 416 | static MACHINE_START( glasgow ) |
| r3414 | r3415 | |
| 414 | 418 | key_selector = 0; |
| 415 | 419 | irq_flag = 0; |
| 416 | 420 | 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); |
| 418 | 422 | beep_set_frequency(0, 44); |
| 419 | 423 | } |
| 420 | 424 | |