summaryrefslogtreecommitdiffstatshomepage
path: root/src/mess/drivers/coleco.c
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2012-10-03 09:27:22 +0000
committer Miodrag Milanovic <mmicko@gmail.com>2012-10-03 09:27:22 +0000
commite52d60b7f8ce03e5c1f8c801fd5caa234b3aa3cf (patch)
treebe8ce4af035c60e33f580cf3a983cc3c9b684c75 /src/mess/drivers/coleco.c
parent92b1c4eebd358d5138fc51662daead09f4a4c72e (diff)
Replace some *_DEVICE_HANDLER with _MEMBER calls in MESS section (no whatsnew)
Diffstat (limited to 'src/mess/drivers/coleco.c')
-rw-r--r--src/mess/drivers/coleco.c12
1 files changed, 5 insertions, 7 deletions
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<coleco_state>();
-
// 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)
};