summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/dec0.cpp
diff options
context:
space:
mode:
author Ivan Vangelista <mesgnet@yahoo.it>2018-12-06 18:47:12 +0100
committer Ivan Vangelista <mesgnet@yahoo.it>2018-12-06 18:47:12 +0100
commitbb1a1ed95669071060ddd99133de74f608c63dd5 (patch)
tree1c8327b5a89b66f8145c1b3cf464f61b37fe22b6 /src/mame/drivers/dec0.cpp
parenta0f1fb2698ad3b584e2f698cecb260216b29c7ae (diff)
src/mame: more MCFG removal (nw)
Diffstat (limited to 'src/mame/drivers/dec0.cpp')
-rw-r--r--src/mame/drivers/dec0.cpp103
1 files changed, 54 insertions, 49 deletions
diff --git a/src/mame/drivers/dec0.cpp b/src/mame/drivers/dec0.cpp
index 2beba329ddb..a6d59622aa0 100644
--- a/src/mame/drivers/dec0.cpp
+++ b/src/mame/drivers/dec0.cpp
@@ -1622,19 +1622,21 @@ MACHINE_CONFIG_START(dec0_state::dec0_base)
MCFG_DEVICE_ADD("gfxdecode", GFXDECODE, "palette", gfx_dec0)
MCFG_PALETTE_ADD("palette", 1024)
- MCFG_DEVICE_ADD("tilegen1", DECO_BAC06, 0)
- MCFG_DECO_BAC06_GFX_REGION_WIDE(0, 0, 0)
- MCFG_DECO_BAC06_GFXDECODE("gfxdecode")
- MCFG_DEVICE_ADD("tilegen2", DECO_BAC06, 0)
- MCFG_DECO_BAC06_GFX_REGION_WIDE(0, 1, 0)
- MCFG_DECO_BAC06_GFXDECODE("gfxdecode")
- MCFG_DEVICE_ADD("tilegen3", DECO_BAC06, 0)
- MCFG_DECO_BAC06_GFX_REGION_WIDE(0, 2, 0)
- MCFG_DECO_BAC06_GFXDECODE("gfxdecode")
-
- MCFG_DEVICE_ADD("spritegen", DECO_MXC06, 0)
- MCFG_DECO_MXC06_GFX_REGION(3)
- MCFG_DECO_MXC06_GFXDECODE("gfxdecode")
+ DECO_BAC06(config, m_tilegen[0], 0);
+ m_tilegen[0]->set_gfx_region_wide(0, 0, 0);
+ m_tilegen[0]->set_gfxdecode_tag("gfxdecode");
+
+ DECO_BAC06(config, m_tilegen[1], 0);
+ m_tilegen[1]->set_gfx_region_wide(0, 1, 0);
+ m_tilegen[1]->set_gfxdecode_tag("gfxdecode");
+
+ DECO_BAC06(config, m_tilegen[2], 0);
+ m_tilegen[2]->set_gfx_region_wide(0, 2, 0);
+ m_tilegen[2]->set_gfxdecode_tag("gfxdecode");
+
+ DECO_MXC06(config, m_spritegen, 0);
+ m_spritegen->set_gfx_region(3);
+ m_spritegen->set_gfxdecode_tag("gfxdecode");
GENERIC_LATCH_8(config, m_soundlatch);
m_soundlatch->data_pending_callback().set_inputline(m_audiocpu, INPUT_LINE_NMI);
@@ -1754,19 +1756,21 @@ MACHINE_CONFIG_START(dec0_automat_state::automat)
MCFG_SCREEN_UPDATE_DRIVER(dec0_automat_state, screen_update_automat)
MCFG_SCREEN_PALETTE("palette")
- MCFG_DEVICE_ADD("tilegen1", DECO_BAC06, 0)
- MCFG_DECO_BAC06_GFX_REGION_WIDE(0, 0, 0)
- MCFG_DECO_BAC06_GFXDECODE("gfxdecode")
- MCFG_DEVICE_ADD("tilegen2", DECO_BAC06, 0)
- MCFG_DECO_BAC06_GFX_REGION_WIDE(0, 1, 0)
- MCFG_DECO_BAC06_GFXDECODE("gfxdecode")
- MCFG_DEVICE_ADD("tilegen3", DECO_BAC06, 0)
- MCFG_DECO_BAC06_GFX_REGION_WIDE(0, 2, 0)
- MCFG_DECO_BAC06_GFXDECODE("gfxdecode")
+ DECO_BAC06(config, m_tilegen[0], 0);
+ m_tilegen[0]->set_gfx_region_wide(0, 0, 0);
+ m_tilegen[0]->set_gfxdecode_tag("gfxdecode");
- MCFG_DEVICE_ADD("spritegen", DECO_MXC06, 0)
- MCFG_DECO_MXC06_GFX_REGION(3)
- MCFG_DECO_MXC06_GFXDECODE("gfxdecode")
+ DECO_BAC06(config, m_tilegen[1], 0);
+ m_tilegen[1]->set_gfx_region_wide(0, 1, 0);
+ m_tilegen[1]->set_gfxdecode_tag("gfxdecode");
+
+ DECO_BAC06(config, m_tilegen[2], 0);
+ m_tilegen[2]->set_gfx_region_wide(0, 2, 0);
+ m_tilegen[2]->set_gfxdecode_tag("gfxdecode");
+
+ DECO_MXC06(config, m_spritegen, 0);
+ m_spritegen->set_gfx_region(3);
+ m_spritegen->set_gfxdecode_tag("gfxdecode");
MCFG_PALETTE_ADD("palette", 1024)
MCFG_PALETTE_FORMAT(xxxxBBBBGGGGRRRR)
@@ -1831,19 +1835,21 @@ MACHINE_CONFIG_START(dec0_automat_state::secretab)
MCFG_SCREEN_UPDATE_DRIVER(dec0_automat_state, screen_update_secretab)
MCFG_SCREEN_PALETTE("palette")
- MCFG_DEVICE_ADD("tilegen1", DECO_BAC06, 0)
- MCFG_DECO_BAC06_GFX_REGION_WIDE(0, 0, 0)
- MCFG_DECO_BAC06_GFXDECODE("gfxdecode")
- MCFG_DEVICE_ADD("tilegen2", DECO_BAC06, 0)
- MCFG_DECO_BAC06_GFX_REGION_WIDE(0, 1, 0)
- MCFG_DECO_BAC06_GFXDECODE("gfxdecode")
- MCFG_DEVICE_ADD("tilegen3", DECO_BAC06, 0)
- MCFG_DECO_BAC06_GFX_REGION_WIDE(0, 2, 0)
- MCFG_DECO_BAC06_GFXDECODE("gfxdecode")
+ DECO_BAC06(config, m_tilegen[0], 0);
+ m_tilegen[0]->set_gfx_region_wide(0, 0, 0);
+ m_tilegen[0]->set_gfxdecode_tag("gfxdecode");
+
+ DECO_BAC06(config, m_tilegen[1], 0);
+ m_tilegen[1]->set_gfx_region_wide(0, 1, 0);
+ m_tilegen[1]->set_gfxdecode_tag("gfxdecode");
- MCFG_DEVICE_ADD("spritegen", DECO_MXC06, 0)
- MCFG_DECO_MXC06_GFX_REGION(3)
- MCFG_DECO_MXC06_GFXDECODE("gfxdecode")
+ DECO_BAC06(config, m_tilegen[2], 0);
+ m_tilegen[2]->set_gfx_region_wide(0, 2, 0);
+ m_tilegen[2]->set_gfxdecode_tag("gfxdecode");
+
+ DECO_MXC06(config, m_spritegen, 0);
+ m_spritegen->set_gfx_region(3);
+ m_spritegen->set_gfxdecode_tag("gfxdecode");
MCFG_PALETTE_ADD("palette", 1024)
MCFG_PALETTE_FORMAT(xxxxBBBBGGGGRRRR)
@@ -2052,22 +2058,21 @@ MACHINE_CONFIG_START(dec0_state::midresb)
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.80)
// bootleg doesn't seem to support row/col scroll (or enable is different)
-// MCFG_DEVICE_MODIFY("tilegen1")
-// MCFG_BAC06_BOOTLEG_DISABLE_16x16
-// MCFG_BAC06_BOOTLEG_DISABLE_RC_SCROLL
- MCFG_DEVICE_MODIFY("tilegen2")
-// MCFG_BAC06_BOOTLEG_DISABLE_8x8
- MCFG_BAC06_BOOTLEG_DISABLE_RC_SCROLL
- MCFG_DEVICE_MODIFY("tilegen3")
-// MCFG_BAC06_BOOTLEG_DISABLE_8x8
- MCFG_BAC06_BOOTLEG_DISABLE_RC_SCROLL
+// m_tilegen[0]->disable_16x16();
+// m_tilegen[0]->disable_rc_scroll();
+
+// m_tilegen[1]->disable_8x8();
+ m_tilegen[1]->disable_rc_scroll();
+// m_tilegen[2]->disable_8x8();
+ m_tilegen[2]->disable_rc_scroll();
MACHINE_CONFIG_END
-MACHINE_CONFIG_START(dec0_state::midresbj)
+void dec0_state::midresbj(machine_config &config)
+{
midresb(config);
- MCFG_DEVICE_REMOVE("mcu")
-MACHINE_CONFIG_END
+ config.device_remove("mcu");
+}
/******************************************************************************/