summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--src/mame/drivers/galaxia.cpp13
-rw-r--r--src/mame/includes/galaxia.h2
2 files changed, 9 insertions, 6 deletions
diff --git a/src/mame/drivers/galaxia.cpp b/src/mame/drivers/galaxia.cpp
index 4cc2db75004..2bcbc18fcd4 100644
--- a/src/mame/drivers/galaxia.cpp
+++ b/src/mame/drivers/galaxia.cpp
@@ -78,10 +78,13 @@ TODO:
#include "speaker.h"
-INTERRUPT_GEN_MEMBER(galaxia_state::galaxia_interrupt)
+WRITE_LINE_MEMBER(galaxia_state::vblank_irq)
{
- device.execute().set_input_line_and_vector(0, HOLD_LINE, 0x03);
- cvs_scroll_stars();
+ if (state)
+ {
+ m_maincpu->set_input_line_and_vector(0, HOLD_LINE, 0x03);
+ cvs_scroll_stars();
+ }
}
@@ -295,7 +298,6 @@ MACHINE_CONFIG_START(galaxia_state::galaxia)
MCFG_CPU_PROGRAM_MAP(galaxia_mem_map)
MCFG_CPU_IO_MAP(galaxia_io_map)
MCFG_CPU_DATA_MAP(galaxia_data_map)
- MCFG_CPU_VBLANK_INT_DRIVER("screen", galaxia_state, galaxia_interrupt)
MCFG_S2650_SENSE_INPUT(DEVREADLINE("screen", screen_device, vblank))
MCFG_S2650_FLAG_OUTPUT(WRITELINE(cvs_state, write_s2650_flag))
@@ -308,6 +310,7 @@ MACHINE_CONFIG_START(galaxia_state::galaxia)
MCFG_SCREEN_VISIBLE_AREA(0*8, 30*8-1, 2*8, 32*8-1)
MCFG_SCREEN_UPDATE_DRIVER(galaxia_state, screen_update_galaxia)
MCFG_SCREEN_PALETTE("palette")
+ MCFG_SCREEN_VBLANK_CALLBACK(WRITELINE(galaxia_state, vblank_irq))
MCFG_GFXDECODE_ADD("gfxdecode", "palette", galaxia)
MCFG_PALETTE_ADD("palette", 0x18+2)
@@ -339,7 +342,6 @@ MACHINE_CONFIG_START(galaxia_state::astrowar)
MCFG_CPU_PROGRAM_MAP(astrowar_mem_map)
MCFG_CPU_IO_MAP(galaxia_io_map)
MCFG_CPU_DATA_MAP(galaxia_data_map)
- MCFG_CPU_VBLANK_INT_DRIVER("screen", galaxia_state, galaxia_interrupt)
MCFG_S2650_SENSE_INPUT(DEVREADLINE("screen", screen_device, vblank))
MCFG_S2650_FLAG_OUTPUT(WRITELINE(cvs_state, write_s2650_flag))
@@ -352,6 +354,7 @@ MACHINE_CONFIG_START(galaxia_state::astrowar)
MCFG_SCREEN_VISIBLE_AREA(1*8, 31*8-1, 2*8, 32*8-1)
MCFG_SCREEN_UPDATE_DRIVER(galaxia_state, screen_update_astrowar)
MCFG_SCREEN_PALETTE("palette")
+ MCFG_SCREEN_VBLANK_CALLBACK(WRITELINE(galaxia_state, vblank_irq))
MCFG_GFXDECODE_ADD("gfxdecode", "palette", astrowar)
MCFG_PALETTE_ADD("palette", 0x18+2)
diff --git a/src/mame/includes/galaxia.h b/src/mame/includes/galaxia.h
index 8be7601bfcb..bf65a808a0e 100644
--- a/src/mame/includes/galaxia.h
+++ b/src/mame/includes/galaxia.h
@@ -31,7 +31,7 @@ public:
DECLARE_PALETTE_INIT(astrowar);
uint32_t screen_update_galaxia(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
uint32_t screen_update_astrowar(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- INTERRUPT_GEN_MEMBER(galaxia_interrupt);
+ DECLARE_WRITE_LINE_MEMBER(vblank_irq);
void init_common();
void astrowar(machine_config &config);
void galaxia(machine_config &config);