diff options
Diffstat (limited to 'src/mame/drivers/4dpi.cpp')
-rw-r--r-- | src/mame/drivers/4dpi.cpp | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/src/mame/drivers/4dpi.cpp b/src/mame/drivers/4dpi.cpp index 4bea366bc98..191edfbd51d 100644 --- a/src/mame/drivers/4dpi.cpp +++ b/src/mame/drivers/4dpi.cpp @@ -239,23 +239,21 @@ void sgi_ip6_state::sgi_ip6_map(address_map &map) MACHINE DRIVERS ***************************************************************************/ -MACHINE_CONFIG_START(sgi_ip6_state::sgi_ip6) +void sgi_ip6_state::sgi_ip6(machine_config &config) +{ R2000(config, m_maincpu, 25_MHz_XTAL / 2, 16384, 8192); m_maincpu->set_endianness(ENDIANNESS_BIG); m_maincpu->set_addrmap(AS_PROGRAM, &sgi_ip6_state::sgi_ip6_map); m_maincpu->set_vblank_int("screen", FUNC(sgi_ip6_state::sgi_ip6_vbl)); - /* video hardware */ - MCFG_SCREEN_ADD("screen", RASTER) - MCFG_SCREEN_REFRESH_RATE( 60 ) - MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ - MCFG_SCREEN_SIZE(640, 480) - MCFG_SCREEN_VISIBLE_AREA(0, 640-1, 0, 480-1) - MCFG_SCREEN_UPDATE_DRIVER(sgi_ip6_state, screen_update_sgi_ip6) - - -MACHINE_CONFIG_END + screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_RASTER)); + screen.set_refresh_hz(60); + screen.set_vblank_time(ATTOSECONDS_IN_USEC(2500)); /* not accurate */ + screen.set_size(640, 480); + screen.set_visarea(0, 640-1, 0, 480-1); + screen.set_screen_update(FUNC(sgi_ip6_state::screen_update_sgi_ip6)); +} static INPUT_PORTS_START( sgi_ip6 ) PORT_START("UNUSED") // unused IN0 |