summaryrefslogtreecommitdiffstats
path: root/src/mame/drivers/esh.c
diff options
context:
space:
mode:
authorGravatarGravatar Miodrag Milanovic <mmicko@gmail.com>2012-09-18 14:10:42 +0000
committerGravatarGravatar Miodrag Milanovic <mmicko@gmail.com>2012-09-18 14:10:42 +0000
commit3ac43e0187323c2b55dc00c79c31bdd2d50d9b20 (patch) (github)
treef3d239297dce0fbae1086ee57ff792c151d0ac52 /src/mame/drivers/esh.c
parente58642872abb95b7ac7f6444abb75a8c33bcb068 (diff)
downloadmame-3ac43e0187323c2b55dc00c79c31bdd2d50d9b20.tar.bz2
mame-3ac43e0187323c2b55dc00c79c31bdd2d50d9b20.zip
INTERRUPT_GEN -> INTERRUPT_GEN_MEMBER (no whatsnew)
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")