summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/vegaeo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/vegaeo.cpp')
-rw-r--r--src/mame/drivers/vegaeo.cpp52
1 files changed, 26 insertions, 26 deletions
diff --git a/src/mame/drivers/vegaeo.cpp b/src/mame/drivers/vegaeo.cpp
index b735b6c1d2b..e835a3c5604 100644
--- a/src/mame/drivers/vegaeo.cpp
+++ b/src/mame/drivers/vegaeo.cpp
@@ -172,26 +172,26 @@ uint32_t vegaeo_state::screen_update_vega(screen_device &screen, bitmap_ind16 &b
return 0;
}
+void vegaeo_state::vega(machine_config &config)
+{
+ GMS30C2132(config, m_maincpu, XTAL(55'000'000));
+ m_maincpu->set_addrmap(AS_PROGRAM, &vegaeo_state::vega_map);
+ TIMER(config, "scantimer").configure_scanline(FUNC(vegaeo_state::eolith_speedup), "screen", 0, 1);
-MACHINE_CONFIG_START(vegaeo_state::vega)
- MCFG_DEVICE_ADD("maincpu", GMS30C2132, XTAL(55'000'000))
- MCFG_DEVICE_PROGRAM_MAP(vega_map)
- MCFG_TIMER_DRIVER_ADD_SCANLINE("scantimer", vegaeo_state, eolith_speedup, "screen", 0, 1)
-
- MCFG_DEVICE_ADD("at28c16", AT28C16, 0)
+ AT28C16(config, "at28c16", 0);
/* video hardware */
- MCFG_SCREEN_ADD("screen", RASTER)
- MCFG_SCREEN_REFRESH_RATE(60)
- MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0))
- MCFG_SCREEN_SIZE(512, 262)
- MCFG_SCREEN_VISIBLE_AREA(0, 319, 0, 239)
- MCFG_SCREEN_UPDATE_DRIVER(vegaeo_state, screen_update_vega)
- MCFG_SCREEN_PALETTE("palette")
-
- MCFG_PALETTE_ADD("palette", 256)
- MCFG_PALETTE_FORMAT(xRRRRRGGGGGBBBBB)
- MCFG_PALETTE_MEMBITS(16)
+ SCREEN(config, m_screen, SCREEN_TYPE_RASTER);
+ m_screen->set_refresh_hz(60);
+ m_screen->set_vblank_time(ATTOSECONDS_IN_USEC(0));
+ m_screen->set_size(512, 262);
+ m_screen->set_visarea(0, 319, 0, 239);
+ m_screen->set_screen_update(FUNC(vegaeo_state::screen_update_vega));
+ m_screen->set_palette(m_palette);
+
+ PALETTE(config, m_palette, 256);
+ m_palette->set_format(PALETTE_FORMAT_xRRRRRGGGGGBBBBB);
+ m_palette->set_membits(16);
MCFG_VIDEO_START_OVERRIDE(vegaeo_state,vega)
@@ -203,15 +203,15 @@ MACHINE_CONFIG_START(vegaeo_state::vega)
m_soundlatch->data_pending_callback().set("qs1000", FUNC(qs1000_device::set_irq));
m_soundlatch->set_separate_acknowledge(true);
- MCFG_DEVICE_ADD("qs1000", QS1000, XTAL(24'000'000))
- MCFG_QS1000_EXTERNAL_ROM(true)
- MCFG_QS1000_IN_P1_CB(READ8("soundlatch", generic_latch_8_device, read))
- MCFG_QS1000_OUT_P1_CB(WRITE8(*this, vegaeo_state, qs1000_p1_w))
- MCFG_QS1000_OUT_P2_CB(WRITE8(*this, vegaeo_state, qs1000_p2_w))
- MCFG_QS1000_OUT_P3_CB(WRITE8(*this, vegaeo_state, qs1000_p3_w))
- MCFG_SOUND_ROUTE(0, "lspeaker", 1.0)
- MCFG_SOUND_ROUTE(1, "rspeaker", 1.0)
-MACHINE_CONFIG_END
+ QS1000(config, m_qs1000, XTAL(24'000'000));
+ m_qs1000->set_external_rom(true);
+ m_qs1000->p1_in().set("soundlatch", FUNC(generic_latch_8_device::read));
+ m_qs1000->p1_out().set(FUNC(vegaeo_state::qs1000_p1_w));
+ m_qs1000->p2_out().set(FUNC(vegaeo_state::qs1000_p2_w));
+ m_qs1000->p3_out().set(FUNC(vegaeo_state::qs1000_p3_w));
+ m_qs1000->add_route(0, "lspeaker", 1.0);
+ m_qs1000->add_route(1, "rspeaker", 1.0);
+}
/*
Crazy Wars