summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/commando.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/commando.cpp')
-rw-r--r--src/mame/drivers/commando.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/mame/drivers/commando.cpp b/src/mame/drivers/commando.cpp
index 6b521b451a4..2400b021dda 100644
--- a/src/mame/drivers/commando.cpp
+++ b/src/mame/drivers/commando.cpp
@@ -275,20 +275,18 @@ MACHINE_CONFIG_START(commando_state::commando)
screen.set_palette(m_palette);
MCFG_DEVICE_ADD("gfxdecode", GFXDECODE, "palette", gfx_commando)
- MCFG_PALETTE_ADD_RRRRGGGGBBBB_PROMS("palette", "proms", 256)
+ PALETTE(config, m_palette, palette_device::RGB_444_PROMS, "proms", 256);
- MCFG_DEVICE_ADD("spriteram", BUFFERED_SPRITERAM8)
+ BUFFERED_SPRITERAM8(config, m_spriteram);
/* sound hardware */
SPEAKER(config, "mono").front_center();
GENERIC_LATCH_8(config, "soundlatch");
- MCFG_DEVICE_ADD("ym1", YM2203, PHI_B/2)
- MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.15)
+ YM2203(config, "ym1", PHI_B/2).add_route(ALL_OUTPUTS, "mono", 0.15);
- MCFG_DEVICE_ADD("ym2", YM2203, PHI_B/2)
- MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.15)
+ YM2203(config, "ym2", PHI_B/2).add_route(ALL_OUTPUTS, "mono", 0.15);
MACHINE_CONFIG_END