trunk/src/mess/drivers/intv.c
| r20912 | r20913 | |
| 798 | 798 | |
| 799 | 799 | TIMER_CALLBACK_MEMBER(intv_state::intv_interrupt2_complete) |
| 800 | 800 | { |
| 801 | | machine().device("keyboard")->execute().set_input_line(0, CLEAR_LINE); |
| 801 | m_keyboard->set_input_line(0, CLEAR_LINE); |
| 802 | 802 | } |
| 803 | 803 | |
| 804 | 804 | INTERRUPT_GEN_MEMBER(intv_state::intv_interrupt2) |
| 805 | 805 | { |
| 806 | | machine().device("keyboard")->execute().set_input_line(0, ASSERT_LINE); |
| 807 | | machine().scheduler().timer_set(machine().device<cpu_device>("keyboard")->cycles_to_attotime(100), timer_expired_delegate(FUNC(intv_state::intv_interrupt2_complete),this)); |
| 806 | m_keyboard->set_input_line(0, ASSERT_LINE); |
| 807 | machine().scheduler().timer_set(m_keyboard->cycles_to_attotime(100), timer_expired_delegate(FUNC(intv_state::intv_interrupt2_complete),this)); |
| 808 | 808 | } |
| 809 | 809 | |
| 810 | 810 | static MACHINE_CONFIG_START( intv, intv_state ) |
trunk/src/mess/includes/intv.h
| r20912 | r20913 | |
| 40 | 40 | m_sound(*this, "ay8914.1"), |
| 41 | 41 | m_ecs_sound(*this, "ay8914.2"), |
| 42 | 42 | m_intvkbd_dualport_ram(*this, "dualport_ram"), |
| 43 | | m_videoram(*this, "videoram") |
| 43 | m_videoram(*this, "videoram"), |
| 44 | m_keyboard(*this, "keyboard") |
| 44 | 45 | { } |
| 45 | 46 | |
| 46 | 47 | required_device<cpu_device> m_maincpu; |
| r20912 | r20913 | |
| 142 | 143 | TIMER_CALLBACK_MEMBER(intv_btb_fill); |
| 143 | 144 | DECLARE_DEVICE_IMAGE_LOAD_MEMBER( intv_cart ); |
| 144 | 145 | DECLARE_DEVICE_IMAGE_LOAD_MEMBER( intvkbd_cart ); |
| 146 | |
| 147 | protected: |
| 148 | optional_device<cpu_device> m_keyboard; |
| 145 | 149 | }; |
| 146 | 150 | |
| 147 | 151 | /*----------- defined in video/intv.c -----------*/ |