summaryrefslogtreecommitdiffstatshomepage
path: root/src/mess/machine/poly88.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mess/machine/poly88.c')
-rw-r--r--src/mess/machine/poly88.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mess/machine/poly88.c b/src/mess/machine/poly88.c
index ff0eb279bbe..c02cc3f9546 100644
--- a/src/mess/machine/poly88.c
+++ b/src/mess/machine/poly88.c
@@ -130,10 +130,9 @@ TIMER_CALLBACK_MEMBER(poly88_state::keyboard_callback)
}
}
-static IRQ_CALLBACK (poly88_irq_callback)
+IRQ_CALLBACK_MEMBER(poly88_state::poly88_irq_callback)
{
- poly88_state *state = device->machine().driver_data<poly88_state>();
- return state->m_int_vector;
+ return m_int_vector;
}
TIMER_CALLBACK_MEMBER(poly88_state::poly88_cassette_timer_callback)
@@ -208,7 +207,7 @@ DRIVER_INIT_MEMBER(poly88_state,poly88)
void poly88_state::machine_reset()
{
- m_maincpu->set_irq_acknowledge_callback(poly88_irq_callback);
+ m_maincpu->set_irq_acknowledge_callback(device_irq_acknowledge_delegate(FUNC(poly88_state::poly88_irq_callback),this));
m_intr = 0;
m_last_code = 0;