summaryrefslogtreecommitdiffstats
path: root/src/mame/drivers/galaxia.cpp
diff options
context:
space:
mode:
authorGravatarGravatar AJR <ajrhacker@users.noreply.github.com>2018-03-28 14:44:41 -0400
committerGravatarGravatar AJR <ajrhacker@users.noreply.github.com>2018-03-28 14:44:41 -0400
commit052eb8f073997307bcac2ee79b863b3309370d6a (patch) (github)
treef5b5e5a55f3cc5d3bf21017dd600238d328ba78c /src/mame/drivers/galaxia.cpp
parentfb583032202d4cb238506370f710d8bb70cd3e0f (diff)
downloadmame-052eb8f073997307bcac2ee79b863b3309370d6a.tar.bz2
mame-052eb8f073997307bcac2ee79b863b3309370d6a.zip
galaxia.cpp: Replace CPU_VBLANK_INT with SCREEN_VBLANK_CALLBACK (nw)
Diffstat (limited to 'src/mame/drivers/galaxia.cpp')
-rw-r--r--src/mame/drivers/galaxia.cpp13
1 files changed, 8 insertions, 5 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)