diff options
Diffstat (limited to 'src/mame/drivers/mole.cpp')
-rw-r--r-- | src/mame/drivers/mole.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/mame/drivers/mole.cpp b/src/mame/drivers/mole.cpp index 5cf939ee286..83702b50d6b 100644 --- a/src/mame/drivers/mole.cpp +++ b/src/mame/drivers/mole.cpp @@ -323,21 +323,21 @@ void mole_state::machine_reset() m_tile_bank = 0; } -MACHINE_CONFIG_START(mole_state::mole) - +void mole_state::mole(machine_config &config) +{ /* basic machine hardware */ - MCFG_DEVICE_ADD("maincpu", M6502, 4000000) // ??? - MCFG_DEVICE_PROGRAM_MAP(mole_map) - MCFG_DEVICE_VBLANK_INT_DRIVER("screen", mole_state, irq0_line_assert) + M6502(config, m_maincpu, 4000000); // ??? + m_maincpu->set_addrmap(AS_PROGRAM, &mole_state::mole_map); + m_maincpu->set_vblank_int("screen", FUNC(mole_state::irq0_line_assert)); /* video hardware */ - MCFG_SCREEN_ADD("screen", RASTER) - MCFG_SCREEN_REFRESH_RATE(60) - MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) - MCFG_SCREEN_SIZE(40*8, 25*8) - MCFG_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 0*8, 25*8-1) - MCFG_SCREEN_UPDATE_DRIVER(mole_state, screen_update_mole) - MCFG_SCREEN_PALETTE("palette") + screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_RASTER)); + screen.set_refresh_hz(60); + screen.set_vblank_time(ATTOSECONDS_IN_USEC(2500)); + screen.set_size(40*8, 25*8); + screen.set_visarea(0*8, 40*8-1, 0*8, 25*8-1); + screen.set_screen_update(FUNC(mole_state::screen_update_mole)); + screen.set_palette("palette"); GFXDECODE(config, m_gfxdecode, "palette", gfx_mole); PALETTE(config, "palette", palette_device::RBG_3BIT); @@ -346,7 +346,7 @@ MACHINE_CONFIG_START(mole_state::mole) SPEAKER(config, "mono").front_center(); AY8910(config, "aysnd", 2000000).add_route(ALL_OUTPUTS, "mono", 1.0); -MACHINE_CONFIG_END +} /************************************* |