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/taito_l.c | |
parent | 34bf46e8290d3ed2c13e598527b54d2290ff11b5 (diff) |
IRQ_CALLBACK modernization part 3 (no whatsnew)
Diffstat (limited to 'src/mame/drivers/taito_l.c')
-rw-r--r-- | src/mame/drivers/taito_l.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mame/drivers/taito_l.c b/src/mame/drivers/taito_l.c index a1923ca2b6d..0155962145f 100644 --- a/src/mame/drivers/taito_l.c +++ b/src/mame/drivers/taito_l.c @@ -290,16 +290,15 @@ MACHINE_RESET_MEMBER(taitol_state,horshoes) } -static IRQ_CALLBACK( irq_callback ) +IRQ_CALLBACK_MEMBER(taitol_state::irq_callback) { - taitol_state *state = device->machine().driver_data<taitol_state>(); - return state->m_irq_adr_table[state->m_last_irq_level]; + return m_irq_adr_table[m_last_irq_level]; } TIMER_DEVICE_CALLBACK_MEMBER(taitol_state::vbl_interrupt) { int scanline = param; - m_maincpu->set_irq_acknowledge_callback(irq_callback); + m_maincpu->set_irq_acknowledge_callback(device_irq_acknowledge_delegate(FUNC(taitol_state::irq_callback),this)); /* kludge to make plgirls boot */ if (m_maincpu->state_int(Z80_IM) != 2) |