diff options
Diffstat (limited to 'src/mame/drivers/odyssey.cpp')
-rw-r--r-- | src/mame/drivers/odyssey.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/mame/drivers/odyssey.cpp b/src/mame/drivers/odyssey.cpp index 7e88e16b326..628fe45caa9 100644 --- a/src/mame/drivers/odyssey.cpp +++ b/src/mame/drivers/odyssey.cpp @@ -133,20 +133,20 @@ void odyssey_state::machine_reset() * Machine Config * **************************************/ -MACHINE_CONFIG_START(odyssey_state::odyssey) - +void odyssey_state::odyssey(machine_config &config) +{ /* basic machine hardware */ - MCFG_DEVICE_ADD("maincpu", PENTIUM, 133000000) // a Celeron at 1.70 GHz on the MB I checked. - MCFG_DEVICE_PROGRAM_MAP(odyssey_map) + PENTIUM(config, m_maincpu, 133000000); // a Celeron at 1.70 GHz on the MB I checked. + m_maincpu->set_addrmap(AS_PROGRAM, &odyssey_state::odyssey_map); /* video hardware */ - MCFG_SCREEN_ADD("screen", RASTER) - MCFG_SCREEN_REFRESH_RATE(60) - MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) - MCFG_SCREEN_SIZE(640, 480) - MCFG_SCREEN_VISIBLE_AREA(0, 640-1, 0, 480-1) - MCFG_SCREEN_UPDATE_DRIVER(odyssey_state, screen_update) -MACHINE_CONFIG_END + screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_RASTER)); + screen.set_refresh_hz(60); + screen.set_vblank_time(ATTOSECONDS_IN_USEC(0)); + screen.set_size(640, 480); + screen.set_visarea(0, 640-1, 0, 480-1); + screen.set_screen_update(FUNC(odyssey_state::screen_update)); +} /************************************** |