summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/vaportra.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/vaportra.cpp')
-rw-r--r--src/mame/drivers/vaportra.cpp70
1 files changed, 35 insertions, 35 deletions
diff --git a/src/mame/drivers/vaportra.cpp b/src/mame/drivers/vaportra.cpp
index 4008e4ccaea..c1ad77f601c 100644
--- a/src/mame/drivers/vaportra.cpp
+++ b/src/mame/drivers/vaportra.cpp
@@ -232,41 +232,41 @@ MACHINE_CONFIG_START(vaportra_state::vaportra)
MCFG_DEVICE_ADD("gfxdecode", GFXDECODE, m_palette, gfx_vaportra)
MCFG_PALETTE_ADD(m_palette, 1280)
- MCFG_DEVICE_ADD(m_deco_tilegen[0], DECO16IC, 0)
- MCFG_DECO16IC_SPLIT(0)
- MCFG_DECO16IC_PF1_SIZE(DECO_64x32)
- MCFG_DECO16IC_PF2_SIZE(DECO_64x32)
- MCFG_DECO16IC_PF1_TRANS_MASK(0x0f)
- MCFG_DECO16IC_PF2_TRANS_MASK(0x0f)
- MCFG_DECO16IC_PF1_COL_BANK(0x00)
- MCFG_DECO16IC_PF2_COL_BANK(0x20)
- MCFG_DECO16IC_PF1_COL_MASK(0x0f)
- MCFG_DECO16IC_PF2_COL_MASK(0x0f)
- MCFG_DECO16IC_BANK1_CB(vaportra_state, bank_callback)
- MCFG_DECO16IC_BANK2_CB(vaportra_state, bank_callback)
- MCFG_DECO16IC_PF12_8X8_BANK(0)
- MCFG_DECO16IC_PF12_16X16_BANK(1)
- MCFG_DECO16IC_GFXDECODE("gfxdecode")
-
- MCFG_DEVICE_ADD(m_deco_tilegen[1], DECO16IC, 0)
- MCFG_DECO16IC_SPLIT(0)
- MCFG_DECO16IC_PF1_SIZE(DECO_64x32)
- MCFG_DECO16IC_PF2_SIZE(DECO_64x32)
- MCFG_DECO16IC_PF1_TRANS_MASK(0x0f)
- MCFG_DECO16IC_PF2_TRANS_MASK(0x0f)
- MCFG_DECO16IC_PF1_COL_BANK(0x30)
- MCFG_DECO16IC_PF2_COL_BANK(0x40)
- MCFG_DECO16IC_PF1_COL_MASK(0x0f)
- MCFG_DECO16IC_PF2_COL_MASK(0x0f)
- MCFG_DECO16IC_BANK1_CB(vaportra_state, bank_callback)
- MCFG_DECO16IC_BANK2_CB(vaportra_state, bank_callback)
- MCFG_DECO16IC_PF12_8X8_BANK(2)
- MCFG_DECO16IC_PF12_16X16_BANK(3)
- MCFG_DECO16IC_GFXDECODE("gfxdecode")
-
- MCFG_DEVICE_ADD(m_spritegen, DECO_MXC06, 0)
- MCFG_DECO_MXC06_GFX_REGION(4)
- MCFG_DECO_MXC06_GFXDECODE("gfxdecode")
+ DECO16IC(config, m_deco_tilegen[0], 0);
+ m_deco_tilegen[0]->set_split(0);
+ m_deco_tilegen[0]->set_pf1_size(DECO_64x32);
+ m_deco_tilegen[0]->set_pf2_size(DECO_64x32);
+ m_deco_tilegen[0]->set_pf1_trans_mask(0x0f);
+ m_deco_tilegen[0]->set_pf2_trans_mask(0x0f);
+ m_deco_tilegen[0]->set_pf1_col_bank(0x00);
+ m_deco_tilegen[0]->set_pf2_col_bank(0x20);
+ m_deco_tilegen[0]->set_pf1_col_mask(0x0f);
+ m_deco_tilegen[0]->set_pf2_col_mask(0x0f);
+ m_deco_tilegen[0]->set_bank1_callback(FUNC(vaportra_state::bank_callback), this);
+ m_deco_tilegen[0]->set_bank2_callback(FUNC(vaportra_state::bank_callback), this);
+ m_deco_tilegen[0]->set_pf12_8x8_bank(0);
+ m_deco_tilegen[0]->set_pf12_16x16_bank(1);
+ m_deco_tilegen[0]->set_gfxdecode_tag("gfxdecode");
+
+ DECO16IC(config, m_deco_tilegen[1], 0);
+ m_deco_tilegen[1]->set_split(0);
+ m_deco_tilegen[1]->set_pf1_size(DECO_64x32);
+ m_deco_tilegen[1]->set_pf2_size(DECO_64x32);
+ m_deco_tilegen[1]->set_pf1_trans_mask(0x0f);
+ m_deco_tilegen[1]->set_pf2_trans_mask(0x0f);
+ m_deco_tilegen[1]->set_pf1_col_bank(0x30);
+ m_deco_tilegen[1]->set_pf2_col_bank(0x40);
+ m_deco_tilegen[1]->set_pf1_col_mask(0x0f);
+ m_deco_tilegen[1]->set_pf2_col_mask(0x0f);
+ m_deco_tilegen[1]->set_bank1_callback(FUNC(vaportra_state::bank_callback), this);
+ m_deco_tilegen[1]->set_bank2_callback(FUNC(vaportra_state::bank_callback), this);
+ m_deco_tilegen[1]->set_pf12_8x8_bank(2);
+ m_deco_tilegen[1]->set_pf12_16x16_bank(3);
+ m_deco_tilegen[1]->set_gfxdecode_tag("gfxdecode");
+
+ DECO_MXC06(config, m_spritegen, 0);
+ m_spritegen->set_gfx_region(4);
+ m_spritegen->set_gfxdecode_tag("gfxdecode");
/* sound hardware */
SPEAKER(config, "mono").front_center();