Previous 199869 Revisions Next

r20913 Sunday 10th February, 2013 at 21:10:37 UTC by Wilbert Pol
(MESS) intv.c: Reduce some tagmap lookups (nw)
[src/mess/drivers]intv.c
[src/mess/includes]intv.h

trunk/src/mess/drivers/intv.c
r20912r20913
798798
799799TIMER_CALLBACK_MEMBER(intv_state::intv_interrupt2_complete)
800800{
801   machine().device("keyboard")->execute().set_input_line(0, CLEAR_LINE);
801   m_keyboard->set_input_line(0, CLEAR_LINE);
802802}
803803
804804INTERRUPT_GEN_MEMBER(intv_state::intv_interrupt2)
805805{
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));
808808}
809809
810810static MACHINE_CONFIG_START( intv, intv_state )
trunk/src/mess/includes/intv.h
r20912r20913
4040   m_sound(*this, "ay8914.1"),
4141   m_ecs_sound(*this, "ay8914.2"),
4242   m_intvkbd_dualport_ram(*this, "dualport_ram"),
43   m_videoram(*this, "videoram")
43   m_videoram(*this, "videoram"),
44   m_keyboard(*this, "keyboard")
4445   { }
4546
4647   required_device<cpu_device> m_maincpu;
r20912r20913
142143   TIMER_CALLBACK_MEMBER(intv_btb_fill);
143144   DECLARE_DEVICE_IMAGE_LOAD_MEMBER( intv_cart );
144145   DECLARE_DEVICE_IMAGE_LOAD_MEMBER( intvkbd_cart );
146
147protected:
148   optional_device<cpu_device> m_keyboard;
145149};
146150
147151/*----------- defined in video/intv.c -----------*/

Previous 199869 Revisions Next


© 1997-2024 The MAME Team