summaryrefslogtreecommitdiffstats
path: root/src/mame/drivers/taitowlf.c
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2013-01-31 13:58:02 +0000
committer Miodrag Milanovic <mmicko@gmail.com>2013-01-31 13:58:02 +0000
commitad69d72a53e16ce23e6bee8f020ca2186ef1c84a (patch)
treeb71013998044c51d7881f28c3294bf28e340aa9a /src/mame/drivers/taitowlf.c
parent34bf46e8290d3ed2c13e598527b54d2290ff11b5 (diff)
IRQ_CALLBACK modernization part 3 (no whatsnew)
Diffstat (limited to 'src/mame/drivers/taitowlf.c')
-rw-r--r--src/mame/drivers/taitowlf.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mame/drivers/taitowlf.c b/src/mame/drivers/taitowlf.c
index 8dce31fa729..f4880c31ae8 100644
--- a/src/mame/drivers/taitowlf.c
+++ b/src/mame/drivers/taitowlf.c
@@ -83,6 +83,7 @@ public:
virtual void machine_reset();
virtual void palette_init();
UINT32 screen_update_taitowlf(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
+ IRQ_CALLBACK_MEMBER(irq_callback);
};
#if !ENABLE_VGA
@@ -532,15 +533,14 @@ static INPUT_PORTS_START(taitowlf)
INPUT_PORTS_END
#endif
-static IRQ_CALLBACK(irq_callback)
+IRQ_CALLBACK_MEMBER(taitowlf_state::irq_callback)
{
- taitowlf_state *state = device->machine().driver_data<taitowlf_state>();
- return pic8259_acknowledge( state->m_pic8259_1);
+ return pic8259_acknowledge(m_pic8259_1);
}
void taitowlf_state::machine_start()
{
- machine().device("maincpu")->execute().set_irq_acknowledge_callback(irq_callback);
+ machine().device("maincpu")->execute().set_irq_acknowledge_callback(device_irq_acknowledge_delegate(FUNC(taitowlf_state::irq_callback),this));
m_pit8254 = machine().device( "pit8254" );
m_pic8259_1 = machine().device( "pic8259_1" );