diff options
Diffstat (limited to 'src/mame/drivers/warpsped.cpp')
-rw-r--r-- | src/mame/drivers/warpsped.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/mame/drivers/warpsped.cpp b/src/mame/drivers/warpsped.cpp index 410bfe1f5eb..65b6c21651f 100644 --- a/src/mame/drivers/warpsped.cpp +++ b/src/mame/drivers/warpsped.cpp @@ -322,26 +322,26 @@ void warpspeed_state::warpsped_palette(palette_device &palette) const palette.set_pen_color(2 + i, 0xff * BIT(i, 0), 0xff * BIT(i, 1), 0xff * BIT(i, 2)); } -MACHINE_CONFIG_START(warpspeed_state::warpspeed) - +void warpspeed_state::warpspeed(machine_config &config) +{ /* basic machine hardware */ - MCFG_DEVICE_ADD("maincpu", Z80, XTAL(5'000'000)/2) - MCFG_DEVICE_PROGRAM_MAP(warpspeed_map) - MCFG_DEVICE_IO_MAP(warpspeed_io_map) - MCFG_DEVICE_VBLANK_INT_DRIVER("screen", warpspeed_state, irq0_line_hold) + Z80(config, m_maincpu, XTAL(5'000'000)/2); + m_maincpu->set_addrmap(AS_PROGRAM, &warpspeed_state::warpspeed_map); + m_maincpu->set_addrmap(AS_IO, &warpspeed_state::warpspeed_io_map); + m_maincpu->set_vblank_int("screen", FUNC(warpspeed_state::irq0_line_hold)); /* video hardware */ - MCFG_SCREEN_ADD("screen", RASTER) - MCFG_SCREEN_REFRESH_RATE(60) - MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) - MCFG_SCREEN_SIZE((32)*8, (32)*8) - MCFG_SCREEN_VISIBLE_AREA(4*8, 32*8-1, 8*8, 32*8-1) - MCFG_SCREEN_PALETTE("palette") - MCFG_SCREEN_UPDATE_DRIVER(warpspeed_state, screen_update) + 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((32)*8, (32)*8); + screen.set_visarea(4*8, 32*8-1, 8*8, 32*8-1); + screen.set_palette("palette"); + screen.set_screen_update(FUNC(warpspeed_state::screen_update)); GFXDECODE(config, m_gfxdecode, "palette", gfx_warpspeed); PALETTE(config, "palette", FUNC(warpspeed_state::warpsped_palette), 2 + 8); -MACHINE_CONFIG_END +} ROM_START( warpsped ) ROM_REGION(0x1000, "maincpu", 0) |