summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/xybots.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/xybots.cpp')
-rw-r--r--src/mame/drivers/xybots.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/mame/drivers/xybots.cpp b/src/mame/drivers/xybots.cpp
index 96dc31fb701..51dbc9cecff 100644
--- a/src/mame/drivers/xybots.cpp
+++ b/src/mame/drivers/xybots.cpp
@@ -175,11 +175,11 @@ GFXDECODE_END
*
*************************************/
-void xybots_state::xybots(machine_config &config)
-{
+MACHINE_CONFIG_START(xybots_state::xybots)
+
/* basic machine hardware */
- M68000(config, m_maincpu, ATARI_CLOCK_14MHz/2);
- m_maincpu->set_addrmap(AS_PROGRAM, &xybots_state::main_map);
+ MCFG_DEVICE_ADD("maincpu", M68000, ATARI_CLOCK_14MHz/2)
+ MCFG_DEVICE_PROGRAM_MAP(main_map)
SLAPSTIC(config, "slapstic", 107, true);
@@ -191,20 +191,20 @@ void xybots_state::xybots(machine_config &config)
GFXDECODE(config, "gfxdecode", "palette", gfx_xybots);
PALETTE(config, "palette").set_format(palette_device::IRGB_4444, 1024);
- TILEMAP(config, m_playfield_tilemap, "gfxdecode", 2, 8, 8, TILEMAP_SCAN_ROWS, 64, 32).set_info_callback(FUNC(xybots_state::get_playfield_tile_info));
- TILEMAP(config, m_alpha_tilemap, "gfxdecode", 2, 8, 8, TILEMAP_SCAN_ROWS, 64, 32, 0).set_info_callback(FUNC(xybots_state::get_alpha_tile_info));
+ MCFG_TILEMAP_ADD_STANDARD("playfield", "gfxdecode", 2, xybots_state, get_playfield_tile_info, 8,8, SCAN_ROWS, 64,32)
+ MCFG_TILEMAP_ADD_STANDARD_TRANSPEN("alpha", "gfxdecode", 2, xybots_state, get_alpha_tile_info, 8,8, SCAN_ROWS, 64,32, 0)
ATARI_MOTION_OBJECTS(config, m_mob, 0, m_screen, xybots_state::s_mob_config);
m_mob->set_gfxdecode(m_gfxdecode);
- SCREEN(config, m_screen, SCREEN_TYPE_RASTER);
- m_screen->set_video_attributes(VIDEO_UPDATE_BEFORE_VBLANK);
+ MCFG_SCREEN_ADD("screen", RASTER)
+ MCFG_SCREEN_VIDEO_ATTRIBUTES(VIDEO_UPDATE_BEFORE_VBLANK)
/* note: these parameters are from published specs, not derived */
/* the board uses a SYNGEN chip to generate video signals */
- m_screen->set_raw(ATARI_CLOCK_14MHz/2, 456, 0, 336, 262, 0, 240);
- m_screen->set_screen_update(FUNC(xybots_state::screen_update_xybots));
- m_screen->set_palette("palette");
- m_screen->screen_vblank().set(FUNC(xybots_state::video_int_write_line));
+ MCFG_SCREEN_RAW_PARAMS(ATARI_CLOCK_14MHz/2, 456, 0, 336, 262, 0, 240)
+ MCFG_SCREEN_UPDATE_DRIVER(xybots_state, screen_update_xybots)
+ MCFG_SCREEN_PALETTE("palette")
+ MCFG_SCREEN_VBLANK_CALLBACK(WRITELINE(*this, xybots_state, video_int_write_line))
/* sound hardware */
SPEAKER(config, "lspeaker").front_left();
@@ -217,7 +217,7 @@ void xybots_state::xybots(machine_config &config)
m_jsa->add_route(1, "lspeaker", 1.0);
config.device_remove("jsa:pokey");
config.device_remove("jsa:tms");
-}
+MACHINE_CONFIG_END