summaryrefslogtreecommitdiffstats
path: root/src/mame/drivers/darkseal.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/darkseal.cpp')
-rw-r--r--src/mame/drivers/darkseal.cpp41
1 files changed, 22 insertions, 19 deletions
diff --git a/src/mame/drivers/darkseal.cpp b/src/mame/drivers/darkseal.cpp
index 71fe922f2bd..9cea0a5512f 100644
--- a/src/mame/drivers/darkseal.cpp
+++ b/src/mame/drivers/darkseal.cpp
@@ -201,30 +201,30 @@ GFXDECODE_END
/******************************************************************************/
-void darkseal_state::darkseal(machine_config &config)
-{
+MACHINE_CONFIG_START(darkseal_state::darkseal)
+
/* basic machine hardware */
- M68000(config, m_maincpu, XTAL(24'000'000)/2); /* Custom chip 59 */
- m_maincpu->set_addrmap(AS_PROGRAM, &darkseal_state::darkseal_map);
- m_maincpu->set_vblank_int("screen", FUNC(darkseal_state::irq6_line_assert)); /* VBL */
+ MCFG_DEVICE_ADD(m_maincpu, M68000, XTAL(24'000'000)/2) /* Custom chip 59 */
+ MCFG_DEVICE_PROGRAM_MAP(darkseal_map)
+ MCFG_DEVICE_VBLANK_INT_DRIVER("screen", darkseal_state, irq6_line_assert)/* VBL */
H6280(config, m_audiocpu, XTAL(32'220'000)/4); /* Custom chip 45, Audio section crystal is 32.220 MHz */
m_audiocpu->set_addrmap(AS_PROGRAM, &darkseal_state::sound_map);
m_audiocpu->add_route(ALL_OUTPUTS, "mono", 0); // internal sound unused
/* video hardware */
- screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_RASTER));
- screen.set_refresh_hz(58);
- screen.set_vblank_time(ATTOSECONDS_IN_USEC(529));
- screen.set_size(32*8, 32*8);
- screen.set_visarea(0*8, 32*8-1, 1*8, 31*8-1);
- screen.set_screen_update(FUNC(darkseal_state::screen_update));
- screen.set_palette(m_palette);
+ MCFG_SCREEN_ADD("screen", RASTER)
+ MCFG_SCREEN_REFRESH_RATE(58)
+ MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(529))
+ MCFG_SCREEN_SIZE(32*8, 32*8)
+ MCFG_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 1*8, 31*8-1)
+ MCFG_SCREEN_UPDATE_DRIVER(darkseal_state, screen_update)
+ MCFG_SCREEN_PALETTE("colors")
- GFXDECODE(config, "gfxdecode", m_palette, gfx_darkseal);
- PALETTE(config, m_palette).set_entries(2048);
+ MCFG_DEVICE_ADD("gfxdecode", GFXDECODE, m_palette, gfx_darkseal)
+ MCFG_PALETTE_ADD(m_palette, 2048)
- BUFFERED_SPRITERAM16(config, m_spriteram);
+ MCFG_DEVICE_ADD(m_spriteram, BUFFERED_SPRITERAM16)
DECO16IC(config, m_deco_tilegen[0], 0);
m_deco_tilegen[0]->set_split(0);
@@ -264,17 +264,20 @@ void darkseal_state::darkseal(machine_config &config)
GENERIC_LATCH_8(config, m_soundlatch);
m_soundlatch->data_pending_callback().set_inputline(m_audiocpu, 0);
- YM2203(config, "ym1", XTAL(32'220'000)/8).add_route(ALL_OUTPUTS, "mono", 0.45);
+ MCFG_DEVICE_ADD("ym1", YM2203, XTAL(32'220'000)/8)
+ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.45)
ym2151_device &ym2(YM2151(config, "ym2", XTAL(32'220'000)/9));
ym2.irq_handler().set_inputline(m_audiocpu, 1); // IRQ2
ym2.add_route(0, "mono", 0.55);
ym2.add_route(1, "mono", 0.55);
- OKIM6295(config, "oki1", XTAL(32'220'000)/32, okim6295_device::PIN7_HIGH).add_route(ALL_OUTPUTS, "mono", 1.0);
+ MCFG_DEVICE_ADD("oki1", OKIM6295, XTAL(32'220'000)/32, okim6295_device::PIN7_HIGH)
+ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
- OKIM6295(config, "oki2", XTAL(32'220'000)/16, okim6295_device::PIN7_HIGH).add_route(ALL_OUTPUTS, "mono", 0.60);
-}
+ MCFG_DEVICE_ADD("oki2", OKIM6295, XTAL(32'220'000)/16, okim6295_device::PIN7_HIGH)
+ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.60)
+MACHINE_CONFIG_END
/******************************************************************************/