summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/ampoker2.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/ampoker2.cpp')
-rw-r--r--src/mame/drivers/ampoker2.cpp35
1 files changed, 17 insertions, 18 deletions
diff --git a/src/mame/drivers/ampoker2.cpp b/src/mame/drivers/ampoker2.cpp
index 4bd0e3570f7..1a89b0c45c4 100644
--- a/src/mame/drivers/ampoker2.cpp
+++ b/src/mame/drivers/ampoker2.cpp
@@ -1166,28 +1166,28 @@ GFXDECODE_END
* Machine Driver *
*************************/
-void ampoker2_state::ampoker2(machine_config &config)
-{
+MACHINE_CONFIG_START(ampoker2_state::ampoker2)
+
/* basic machine hardware */
- Z80(config, m_maincpu, MASTER_CLOCK/2); /* 3 MHz */
- m_maincpu->set_addrmap(AS_PROGRAM, &ampoker2_state::program_map);
- m_maincpu->set_addrmap(AS_IO, &ampoker2_state::io_map);
- m_maincpu->set_periodic_int(FUNC(ampoker2_state::nmi_line_pulse), attotime::from_hz(1536));
+ MCFG_DEVICE_ADD("maincpu", Z80, MASTER_CLOCK/2) /* 3 MHz */
+ MCFG_DEVICE_PROGRAM_MAP(program_map)
+ MCFG_DEVICE_IO_MAP(io_map)
+ MCFG_DEVICE_PERIODIC_INT_DRIVER(ampoker2_state, nmi_line_pulse, 1536)
WATCHDOG_TIMER(config, m_watchdog).set_time(attotime::from_msec(200)); /* 200 ms, measured */
NVRAM(config, "nvram", nvram_device::DEFAULT_ALL_0);
/* video hardware */
- screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_RASTER));
- screen.set_refresh_hz(60);
+ MCFG_SCREEN_ADD("screen", RASTER)
+ MCFG_SCREEN_REFRESH_RATE(60)
/* if VBLANK is used, the watchdog timer stop to work.
- screen.set_vblank_time(ATTOSECONDS_IN_USEC(0));
+ MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0))
*/
- screen.set_size(64*8, 32*8);
- screen.set_visarea(20*8, 56*8-1, 2*8, 32*8-1);
- screen.set_screen_update(FUNC(ampoker2_state::screen_update));
- screen.set_palette("palette");
+ MCFG_SCREEN_SIZE(64*8, 32*8)
+ MCFG_SCREEN_VISIBLE_AREA(20*8, 56*8-1, 2*8, 32*8-1)
+ MCFG_SCREEN_UPDATE_DRIVER(ampoker2_state, screen_update)
+ MCFG_SCREEN_PALETTE("palette")
GFXDECODE(config, m_gfxdecode, "palette", gfx_ampoker2);
PALETTE(config, "palette", FUNC(ampoker2_state::ampoker2_palette), 512);
@@ -1195,16 +1195,15 @@ void ampoker2_state::ampoker2(machine_config &config)
/* sound hardware */
SPEAKER(config, "mono").front_center();
AY8910(config, "aysnd", MASTER_CLOCK/4).add_route(ALL_OUTPUTS, "mono", 0.30); /* 1.5 MHz, measured */
-}
+MACHINE_CONFIG_END
-void ampoker2_state::sigma2k(machine_config &config)
-{
+MACHINE_CONFIG_START(ampoker2_state::sigma2k)
ampoker2(config);
/* video hardware */
- m_gfxdecode->set_info(gfx_sigma2k);
+ MCFG_GFXDECODE_MODIFY("gfxdecode", gfx_sigma2k)
MCFG_VIDEO_START_OVERRIDE(ampoker2_state, sigma2k)
-}
+MACHINE_CONFIG_END
/*************************