diff options
author | 2013-01-31 13:58:02 +0000 | |
---|---|---|
committer | 2013-01-31 13:58:02 +0000 | |
commit | ad69d72a53e16ce23e6bee8f020ca2186ef1c84a (patch) | |
tree | b71013998044c51d7881f28c3294bf28e340aa9a /src/mame/drivers/funkball.c | |
parent | 34bf46e8290d3ed2c13e598527b54d2290ff11b5 (diff) |
IRQ_CALLBACK modernization part 3 (no whatsnew)
Diffstat (limited to 'src/mame/drivers/funkball.c')
-rw-r--r-- | src/mame/drivers/funkball.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mame/drivers/funkball.c b/src/mame/drivers/funkball.c index ee92a587178..39795324945 100644 --- a/src/mame/drivers/funkball.c +++ b/src/mame/drivers/funkball.c @@ -165,6 +165,7 @@ public: virtual void machine_start(); virtual void machine_reset(); UINT32 screen_update_funkball(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); + IRQ_CALLBACK_MEMBER(irq_callback); }; void funkball_state::video_start() @@ -1090,10 +1091,9 @@ static void funkball_set_keyb_int(running_machine &machine, int state) pic8259_ir1_w(drvstate->m_pic8259_1, state); } -static IRQ_CALLBACK(irq_callback) +IRQ_CALLBACK_MEMBER(funkball_state::irq_callback) { - funkball_state *state = device->machine().driver_data<funkball_state>(); - return pic8259_acknowledge( state->m_pic8259_1); + return pic8259_acknowledge(m_pic8259_1); } void funkball_state::machine_start() @@ -1102,7 +1102,7 @@ void funkball_state::machine_start() init_pc_common(machine(), PCCOMMON_KEYBOARD_AT, funkball_set_keyb_int); - m_maincpu->set_irq_acknowledge_callback(irq_callback); + m_maincpu->set_irq_acknowledge_callback(device_irq_acknowledge_delegate(FUNC(funkball_state::irq_callback),this)); kbdc8042_init(machine(), &at8042); |