summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/dacholer.c
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2012-09-18 14:10:42 +0000
committer Miodrag Milanovic <mmicko@gmail.com>2012-09-18 14:10:42 +0000
commit3ac43e0187323c2b55dc00c79c31bdd2d50d9b20 (patch)
treef3d239297dce0fbae1086ee57ff792c151d0ac52 /src/mame/drivers/dacholer.c
parente58642872abb95b7ac7f6444abb75a8c33bcb068 (diff)
INTERRUPT_GEN -> INTERRUPT_GEN_MEMBER (no whatsnew)
Diffstat (limited to 'src/mame/drivers/dacholer.c')
-rw-r--r--src/mame/drivers/dacholer.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mame/drivers/dacholer.c b/src/mame/drivers/dacholer.c
index bceae49218e..9afe5c4ec66 100644
--- a/src/mame/drivers/dacholer.c
+++ b/src/mame/drivers/dacholer.c
@@ -90,6 +90,7 @@ public:
virtual void video_start();
virtual void palette_init();
UINT32 screen_update_dacholer(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
+ INTERRUPT_GEN_MEMBER(sound_irq);
};
TILE_GET_INFO_MEMBER(dacholer_state::get_bg_tile_info)
@@ -549,12 +550,11 @@ static GFXDECODE_START( itaten )
GFXDECODE_END
-static INTERRUPT_GEN( sound_irq )
+INTERRUPT_GEN_MEMBER(dacholer_state::sound_irq)
{
- dacholer_state *state = device->machine().driver_data<dacholer_state>();
- if (state->m_music_interrupt_enable == 1)
+ if (m_music_interrupt_enable == 1)
{
- device->execute().set_input_line_and_vector(0, HOLD_LINE, 0x30);
+ device.execute().set_input_line_and_vector(0, HOLD_LINE, 0x30);
}
}
@@ -652,12 +652,12 @@ static MACHINE_CONFIG_START( dacholer, dacholer_state )
MCFG_CPU_ADD("maincpu", Z80, XTAL_16MHz/4) /* ? */
MCFG_CPU_PROGRAM_MAP(main_map)
MCFG_CPU_IO_MAP(main_io_map)
- MCFG_CPU_VBLANK_INT("screen", irq0_line_assert)
+ MCFG_CPU_VBLANK_INT_DRIVER("screen", dacholer_state, irq0_line_assert)
MCFG_CPU_ADD("audiocpu", Z80, XTAL_19_968MHz/8) /* ? */
MCFG_CPU_PROGRAM_MAP(snd_map)
MCFG_CPU_IO_MAP(snd_io_map)
- MCFG_CPU_VBLANK_INT("screen",sound_irq)
+ MCFG_CPU_VBLANK_INT_DRIVER("screen", dacholer_state, sound_irq)
/* video hardware */