From e52d60b7f8ce03e5c1f8c801fd5caa234b3aa3cf Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Wed, 3 Oct 2012 09:27:22 +0000 Subject: Replace some *_DEVICE_HANDLER with _MEMBER calls in MESS section (no whatsnew) --- src/mess/drivers/coleco.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'src/mess/drivers/coleco.c') diff --git a/src/mess/drivers/coleco.c b/src/mess/drivers/coleco.c index 6e9f09f3d0e..b0b9b0fe8d9 100644 --- a/src/mess/drivers/coleco.c +++ b/src/mess/drivers/coleco.c @@ -165,15 +165,13 @@ INPUT_PORTS_END /* Interrupts */ -static WRITE_LINE_DEVICE_HANDLER(coleco_vdp_interrupt) +WRITE_LINE_MEMBER(coleco_state::coleco_vdp_interrupt) { - coleco_state *drvstate = device->machine().driver_data(); - // NMI on rising edge - if (state && !drvstate->m_last_nmi_state) - drvstate->m_maincpu->set_input_line(INPUT_LINE_NMI, PULSE_LINE); + if (state && !m_last_nmi_state) + m_maincpu->set_input_line(INPUT_LINE_NMI, PULSE_LINE); - drvstate->m_last_nmi_state = state; + m_last_nmi_state = state; } TIMER_CALLBACK_MEMBER(coleco_state::paddle_d7reset_callback) @@ -240,7 +238,7 @@ static TMS9928A_INTERFACE(coleco_tms9928a_interface) { "screen", 0x4000, - DEVCB_LINE(coleco_vdp_interrupt) + DEVCB_DRIVER_LINE_MEMBER(coleco_state,coleco_vdp_interrupt) }; -- cgit v1.2.3