src/mess/drivers/x68k.c
| r12874 | r12875 | |
| 2482 | 2482 | state->m_fdc.disk_inserted[floppy_get_drive(&image.device())] = 0; |
| 2483 | 2483 | } |
| 2484 | 2484 | |
| 2485 | static TIMER_CALLBACK( x68k_net_irq ) |
| 2486 | { |
| 2487 | x68k_state *state = machine.driver_data<x68k_state>(); |
| 2488 | |
| 2489 | state->m_current_vector[2] = 0xf9; |
| 2490 | state->m_current_irq_line = 2; |
| 2491 | cputag_set_input_line_and_vector(machine, "maincpu",2,ASSERT_LINE,state->m_current_vector[2]); |
| 2492 | } |
| 2493 | |
| 2485 | 2494 | static void x68k_irq2_line(device_t* device,int state) |
| 2486 | 2495 | { |
| 2487 | 2496 | x68k_state *tstate = device->machine().driver_data<x68k_state>(); |
| 2488 | 2497 | if(state==ASSERT_LINE) |
| 2489 | 2498 | { |
| 2490 | | tstate->m_current_vector[2] = 0xf9; |
| 2491 | | tstate->m_current_irq_line = 2; |
| 2492 | | cputag_set_input_line_and_vector(device->machine(), "maincpu",2,ASSERT_LINE,tstate->m_current_vector[2]); // Disk insert/eject interrupt |
| 2499 | tstate->m_net_timer->adjust(attotime::from_usec(16)); |
| 2493 | 2500 | } |
| 2501 | else |
| 2502 | cputag_set_input_line_and_vector(device->machine(), "maincpu",2,CLEAR_LINE,tstate->m_current_vector[2]); |
| 2494 | 2503 | logerror("EXP: IRQ2 set to %i\n",state); |
| 2495 | 2504 | |
| 2496 | 2505 | } |
| r12874 | r12875 | |
| 2725 | 2734 | state->m_vblank_irq = machine.scheduler().timer_alloc(FUNC(x68k_crtc_vblank_irq)); |
| 2726 | 2735 | state->m_mouse_timer = machine.scheduler().timer_alloc(FUNC(x68k_scc_ack)); |
| 2727 | 2736 | state->m_led_timer = machine.scheduler().timer_alloc(FUNC(x68k_led_callback)); |
| 2737 | state->m_net_timer = machine.scheduler().timer_alloc(FUNC(x68k_net_irq)); |
| 2728 | 2738 | |
| 2729 | 2739 | // Initialise timers for 6-button MD controllers |
| 2730 | 2740 | md_6button_init(machine); |