summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/esh.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/esh.c')
-rw-r--r--src/mame/drivers/esh.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/mame/drivers/esh.c b/src/mame/drivers/esh.c
index fe9d1b782bf..e1b7cc45338 100644
--- a/src/mame/drivers/esh.c
+++ b/src/mame/drivers/esh.c
@@ -50,6 +50,7 @@ public:
virtual void machine_start();
virtual void palette_init();
UINT32 screen_update_esh(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
+ INTERRUPT_GEN_MEMBER(vblank_callback_esh);
};
@@ -283,11 +284,11 @@ static TIMER_CALLBACK( irq_stop )
machine.device("maincpu")->execute().set_input_line(0, CLEAR_LINE);
}
-static INTERRUPT_GEN( vblank_callback_esh )
+INTERRUPT_GEN_MEMBER(esh_state::vblank_callback_esh)
{
// IRQ
- device->execute().set_input_line(0, ASSERT_LINE);
- device->machine().scheduler().timer_set(attotime::from_usec(50), FUNC(irq_stop));
+ device.execute().set_input_line(0, ASSERT_LINE);
+ machine().scheduler().timer_set(attotime::from_usec(50), FUNC(irq_stop));
}
void esh_state::machine_start()
@@ -302,7 +303,7 @@ static MACHINE_CONFIG_START( esh, esh_state )
MCFG_CPU_ADD("maincpu", Z80, PCB_CLOCK/6) /* The denominator is a Daphne guess based on PacMan's hardware */
MCFG_CPU_PROGRAM_MAP(z80_0_mem)
MCFG_CPU_IO_MAP(z80_0_io)
- MCFG_CPU_VBLANK_INT("screen", vblank_callback_esh)
+ MCFG_CPU_VBLANK_INT_DRIVER("screen", esh_state, vblank_callback_esh)
MCFG_NVRAM_ADD_0FILL("nvram")