diff options
Diffstat (limited to 'src/mame/drivers/popeye.c')
-rw-r--r-- | src/mame/drivers/popeye.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mame/drivers/popeye.c b/src/mame/drivers/popeye.c index cfbdde9cbbf..44fd68c1c19 100644 --- a/src/mame/drivers/popeye.c +++ b/src/mame/drivers/popeye.c @@ -21,11 +21,11 @@ Notes: #include "sound/ay8910.h" #include "includes/popeye.h" -static INTERRUPT_GEN( popeye_interrupt ) +INTERRUPT_GEN_MEMBER(popeye_state::popeye_interrupt) { /* NMIs are enabled by the I register?? How can that be? */ - if (device->state().state_int(Z80_I) & 1) /* skyskipr: 0/1, popeye: 2/3 but also 0/1 */ - device->execute().set_input_line(INPUT_LINE_NMI, PULSE_LINE); + if (device.state().state_int(Z80_I) & 1) /* skyskipr: 0/1, popeye: 2/3 but also 0/1 */ + device.execute().set_input_line(INPUT_LINE_NMI, PULSE_LINE); } @@ -428,7 +428,7 @@ static MACHINE_CONFIG_START( skyskipr, popeye_state ) MCFG_CPU_ADD("maincpu", Z80, XTAL_8MHz/2) /* 4 MHz */ MCFG_CPU_PROGRAM_MAP(skyskipr_map) MCFG_CPU_IO_MAP(popeye_io_map) - MCFG_CPU_VBLANK_INT("screen", popeye_interrupt) + MCFG_CPU_VBLANK_INT_DRIVER("screen", popeye_state, popeye_interrupt) /* video hardware */ MCFG_SCREEN_ADD("screen", RASTER) |