summaryrefslogtreecommitdiffstatshomepage
path: root/src/mess/drivers/ti99_4p.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mess/drivers/ti99_4p.c')
-rw-r--r--src/mess/drivers/ti99_4p.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/mess/drivers/ti99_4p.c b/src/mess/drivers/ti99_4p.c
index 32ac1b955a7..2c885a926bd 100644
--- a/src/mess/drivers/ti99_4p.c
+++ b/src/mess/drivers/ti99_4p.c
@@ -95,7 +95,8 @@ public:
DECLARE_WRITE_LINE_MEMBER(alphaW);
virtual void machine_start();
DECLARE_MACHINE_RESET(ti99_4p);
-
+ TIMER_DEVICE_CALLBACK_MEMBER(sgcpu_hblank_interrupt);
+
void set_tms9901_INT2_from_v9938(v99x8_device &vdp, int state);
tms9900_device* m_cpu;
@@ -867,9 +868,9 @@ MACHINE_RESET_MEMBER(ti99_4p,ti99_4p)
m_cpu->set_hold(CLEAR_LINE);
}
-TIMER_DEVICE_CALLBACK( sgcpu_hblank_interrupt )
+TIMER_DEVICE_CALLBACK_MEMBER(ti99_4p::sgcpu_hblank_interrupt)
{
- timer.machine().device<v9938_device>(VDP_TAG)->interrupt();
+ machine().device<v9938_device>(VDP_TAG)->interrupt();
}
/*
@@ -887,7 +888,7 @@ static MACHINE_CONFIG_START( ti99_4p_60hz, ti99_4p )
// painted. Accordingly, the full set of lines is refreshed at 30 Hz,
// not 60 Hz. This should be fixed in the v9938 emulation.
MCFG_TI_V9938_ADD(VIDEO_SYSTEM_TAG, 30, SCREEN_TAG, 2500, 512+32, (212+28)*2, DEVICE_SELF, ti99_4p, set_tms9901_INT2_from_v9938)
- MCFG_TIMER_ADD_SCANLINE("scantimer", sgcpu_hblank_interrupt, SCREEN_TAG, 0, 1)
+ MCFG_TIMER_DRIVER_ADD_SCANLINE("scantimer", ti99_4p, sgcpu_hblank_interrupt, SCREEN_TAG, 0, 1)
// tms9901
MCFG_TMS9901_ADD(TMS9901_TAG, tms9901_wiring_sgcpu, 3000000)