summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/3x3puzzl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/3x3puzzl.cpp')
-rw-r--r--src/mame/drivers/3x3puzzl.cpp27
1 files changed, 14 insertions, 13 deletions
diff --git a/src/mame/drivers/3x3puzzl.cpp b/src/mame/drivers/3x3puzzl.cpp
index b390a774651..90cb23b4e5b 100644
--- a/src/mame/drivers/3x3puzzl.cpp
+++ b/src/mame/drivers/3x3puzzl.cpp
@@ -388,20 +388,20 @@ void _3x3puzzle_state::machine_reset()
}
-void _3x3puzzle_state::_3x3puzzle(machine_config &config)
-{
+MACHINE_CONFIG_START(_3x3puzzle_state::_3x3puzzle)
+
/* basic machine hardware */
- M68000(config, m_maincpu, MAIN_CLOCK);
- m_maincpu->set_addrmap(AS_PROGRAM, &_3x3puzzle_state::_3x3puzzle_map);
- m_maincpu->set_vblank_int("screen", FUNC(_3x3puzzle_state::irq4_line_hold));
+ MCFG_DEVICE_ADD("maincpu",M68000,MAIN_CLOCK)
+ MCFG_DEVICE_PROGRAM_MAP(_3x3puzzle_map)
+ MCFG_DEVICE_VBLANK_INT_DRIVER("screen", _3x3puzzle_state, irq4_line_hold)
/* video hardware */
- SCREEN(config, m_screen, SCREEN_TYPE_RASTER);
- m_screen->set_refresh_hz(60);
- m_screen->set_vblank_time(ATTOSECONDS_IN_USEC(2500));
- m_screen->set_screen_update(FUNC(_3x3puzzle_state::screen_update));
- m_screen->set_size(64*8, 32*8);
- m_screen->set_visarea(0*8, 40*8-1, 0*8, 30*8-1);
+ MCFG_SCREEN_ADD("screen", RASTER)
+ MCFG_SCREEN_REFRESH_RATE(60)
+ MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500))
+ MCFG_SCREEN_UPDATE_DRIVER(_3x3puzzle_state, screen_update)
+ MCFG_SCREEN_SIZE(64*8, 32*8)
+ MCFG_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 0*8, 30*8-1)
GFXDECODE(config, m_gfxdecode, "palette", gfx_3x3puzzle);
@@ -409,8 +409,9 @@ void _3x3puzzle_state::_3x3puzzle(machine_config &config)
/* sound hardware */
SPEAKER(config, "mono").front_center();
- OKIM6295(config, m_oki, XTAL(4'000'000)/4, okim6295_device::PIN7_HIGH).add_route(ALL_OUTPUTS, "mono", 1.0);
-}
+ MCFG_DEVICE_ADD("oki", OKIM6295, XTAL(4'000'000)/4, okim6295_device::PIN7_HIGH)
+ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
+MACHINE_CONFIG_END
/***************************************************************************