diff options
Diffstat (limited to 'src/mame/drivers/gstriker.cpp')
-rw-r--r-- | src/mame/drivers/gstriker.cpp | 55 |
1 files changed, 28 insertions, 27 deletions
diff --git a/src/mame/drivers/gstriker.cpp b/src/mame/drivers/gstriker.cpp index 492cbee9faf..72f3743d6d2 100644 --- a/src/mame/drivers/gstriker.cpp +++ b/src/mame/drivers/gstriker.cpp @@ -524,20 +524,19 @@ MACHINE_CONFIG_START(gstriker_state::base) MCFG_PALETTE_FORMAT(xRRRRRGGGGGBBBBB) - MCFG_DEVICE_ADD("zoomtilemap", MB60553, 0) - MCFG_MB60553_GFXDECODE("gfxdecode") - MCFG_MB60553_GFX_REGION(1) + MB60553(config, m_bg, 0); + m_bg->set_gfxdecode_tag(m_gfxdecode); + m_bg->set_gfx_region(1); - MCFG_DEVICE_ADD("texttilemap", VS920A, 0) - MCFG_VS920A_GFXDECODE("gfxdecode") - MCFG_VS920A_GFX_REGION(0) + VS920A(config, m_tx, 0); + m_tx->set_gfxdecode_tag(m_gfxdecode); + m_tx->set_gfx_region(0); - - MCFG_DEVICE_ADD("vsystem_spr", VSYSTEM_SPR, 0) - MCFG_VSYSTEM_SPR_SET_GFXREGION(2) - MCFG_VSYSTEM_SPR_SET_PALMASK(0x1f) - MCFG_VSYSTEM_SPR_SET_TRANSPEN(0) - MCFG_VSYSTEM_SPR_GFXDECODE("gfxdecode") + VSYSTEM_SPR(config, m_spr, 0); + m_spr->set_gfx_region(2); + m_spr->set_pal_mask(0x1f); + m_spr->set_transpen(0); + m_spr->set_gfxdecode_tag(m_gfxdecode); SPEAKER(config, "lspeaker").front_left(); SPEAKER(config, "rspeaker").front_right(); @@ -554,35 +553,37 @@ MACHINE_CONFIG_START(gstriker_state::base) MCFG_SOUND_ROUTE(2, "rspeaker", 1.0) MACHINE_CONFIG_END -MACHINE_CONFIG_START(gstriker_state::gstriker) +void gstriker_state::gstriker(machine_config &config) +{ base(config); - MCFG_DEVICE_ADD("maincpu", M68000, 10000000) - MCFG_DEVICE_PROGRAM_MAP(gstriker_map) - MCFG_DEVICE_VBLANK_INT_DRIVER("screen", gstriker_state, irq1_line_hold) + M68000(config, m_maincpu, 10000000); + m_maincpu->set_addrmap(AS_PROGRAM, &gstriker_state::gstriker_map); + m_maincpu->set_vblank_int("screen", FUNC(gstriker_state::irq1_line_hold)); ACIA6850(config, m_acia, 0); - m_acia->irq_handler().set_inputline("maincpu", M68K_IRQ_2); + m_acia->irq_handler().set_inputline(m_maincpu, M68K_IRQ_2); //m_acia->txd_handler().set("link", FUNC(rs232_port_device::write_txd)); //m_acia->rts_handler().set("link", FUNC(rs232_port_device::write_rts)); -MACHINE_CONFIG_END +} -MACHINE_CONFIG_START(gstriker_state::twc94) +void gstriker_state::twc94(machine_config &config) +{ base(config); - MCFG_DEVICE_ADD("maincpu", M68000, 16000000) - MCFG_DEVICE_PROGRAM_MAP(twcup94_map) - MCFG_DEVICE_VBLANK_INT_DRIVER("screen", gstriker_state, irq1_line_hold) + M68000(config, m_maincpu, 16000000); + m_maincpu->set_addrmap(AS_PROGRAM, &gstriker_state::twcup94_map); + m_maincpu->set_vblank_int("screen", FUNC(gstriker_state::irq1_line_hold)); subdevice<vs9209_device>("io")->porth_output_cb().append(FUNC(gstriker_state::twcup94_prot_reg_w)); -MACHINE_CONFIG_END +} -MACHINE_CONFIG_START(gstriker_state::vgoal) +void gstriker_state::vgoal(machine_config &config) +{ twc94(config); - MCFG_DEVICE_MODIFY("vsystem_spr") - MCFG_VSYSTEM_SPR_SET_TRANSPEN(0xf) // different vs. the other games, find register -MACHINE_CONFIG_END + m_spr->set_transpen(0xf); // different vs. the other games, find register +} |