mirror of
https://github.com/holub/mame
synced 2025-05-02 20:46:41 +03:00
galaxia.cpp: Replace CPU_VBLANK_INT with SCREEN_VBLANK_CALLBACK (nw)
This commit is contained in:
parent
fb58303220
commit
052eb8f073
@ -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)
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user