diff options
Diffstat (limited to 'src/mame/drivers/dreambal.cpp')
-rw-r--r-- | src/mame/drivers/dreambal.cpp | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/src/mame/drivers/dreambal.cpp b/src/mame/drivers/dreambal.cpp index 924510beee4..794a6ad47d4 100644 --- a/src/mame/drivers/dreambal.cpp +++ b/src/mame/drivers/dreambal.cpp @@ -39,7 +39,7 @@ public: driver_device(mconfig, type, tag), m_maincpu(*this, "maincpu"), m_deco104(*this, "ioprot104"), - m_deco_tilegen1(*this, "tilegen1"), + m_deco_tilegen(*this, "tilegen"), m_eeprom(*this, "eeprom") { } @@ -51,7 +51,7 @@ private: /* devices */ required_device<cpu_device> m_maincpu; optional_device<deco104_device> m_deco104; - required_device<deco16ic_device> m_deco_tilegen1; + required_device<deco16ic_device> m_deco_tilegen; required_device<eeprom_serial_93cxx_device> m_eeprom; virtual void machine_start() override; @@ -84,16 +84,16 @@ private: uint32_t dreambal_state::screen_update_dreambal(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) { address_space &space = generic_space(); - uint16_t flip = m_deco_tilegen1->pf_control_r(space, 0, 0xffff); + uint16_t flip = m_deco_tilegen->pf_control_r(space, 0, 0xffff); flip_screen_set(BIT(flip, 7)); - m_deco_tilegen1->pf_update(nullptr, nullptr); + m_deco_tilegen->pf_update(nullptr, nullptr); bitmap.fill(0, cliprect); /* not Confirmed */ screen.priority().fill(0); - m_deco_tilegen1->tilemap_2_draw(screen, bitmap, cliprect, 0, 2); - m_deco_tilegen1->tilemap_1_draw(screen, bitmap, cliprect, 0, 4); + m_deco_tilegen->tilemap_2_draw(screen, bitmap, cliprect, 0, 2); + m_deco_tilegen->tilemap_1_draw(screen, bitmap, cliprect, 0, 4); return 0; } @@ -119,9 +119,9 @@ void dreambal_state::dreambal_map(address_map &map) { //ADDRESS_MAP_UNMAP_HIGH map(0x000000, 0x07ffff).rom(); - map(0x100000, 0x100fff).rw(m_deco_tilegen1, FUNC(deco16ic_device::pf1_data_r), FUNC(deco16ic_device::pf1_data_w)); + map(0x100000, 0x100fff).rw(m_deco_tilegen, FUNC(deco16ic_device::pf1_data_r), FUNC(deco16ic_device::pf1_data_w)); map(0x101000, 0x101fff).ram(); - map(0x102000, 0x102fff).rw(m_deco_tilegen1, FUNC(deco16ic_device::pf2_data_r), FUNC(deco16ic_device::pf2_data_w)); + map(0x102000, 0x102fff).rw(m_deco_tilegen, FUNC(deco16ic_device::pf2_data_r), FUNC(deco16ic_device::pf2_data_w)); map(0x103000, 0x103fff).ram(); map(0x120000, 0x123fff).ram(); @@ -129,7 +129,7 @@ void dreambal_state::dreambal_map(address_map &map) map(0x160000, 0x163fff).rw(FUNC(dreambal_state::dreambal_protection_region_0_104_r), FUNC(dreambal_state::dreambal_protection_region_0_104_w)).share("prot16ram"); /* Protection device */ - map(0x161000, 0x16100f).w(m_deco_tilegen1, FUNC(deco16ic_device::pf_control_w)); + map(0x161000, 0x16100f).w(m_deco_tilegen, FUNC(deco16ic_device::pf_control_w)); map(0x180001, 0x180001).rw("oki", FUNC(okim6295_device::read), FUNC(okim6295_device::write)); @@ -338,21 +338,21 @@ MACHINE_CONFIG_START(dreambal_state::dreambal) m_deco104->port_b_cb().set_ioport("SYSTEM"); m_deco104->port_c_cb().set_ioport("DSW"); - MCFG_DEVICE_ADD("tilegen1", 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(0x10) - MCFG_DECO16IC_PF1_COL_MASK(0x0f) - MCFG_DECO16IC_PF2_COL_MASK(0x0f) - MCFG_DECO16IC_BANK1_CB(dreambal_state, bank_callback) - MCFG_DECO16IC_BANK2_CB(dreambal_state, bank_callback) - MCFG_DECO16IC_PF12_8X8_BANK(0) - MCFG_DECO16IC_PF12_16X16_BANK(1) - MCFG_DECO16IC_GFXDECODE("gfxdecode") + DECO16IC(config, m_deco_tilegen, 0); + m_deco_tilegen->set_split(0); + m_deco_tilegen->set_pf1_size(DECO_64x32); + m_deco_tilegen->set_pf2_size(DECO_64x32); + m_deco_tilegen->set_pf1_trans_mask(0x0f); + m_deco_tilegen->set_pf2_trans_mask(0x0f); + m_deco_tilegen->set_pf1_col_bank(0x00); + m_deco_tilegen->set_pf2_col_bank(0x10); + m_deco_tilegen->set_pf1_col_mask(0x0f); + m_deco_tilegen->set_pf2_col_mask(0x0f); + m_deco_tilegen->set_bank1_callback(FUNC(dreambal_state::bank_callback), this); + m_deco_tilegen->set_bank2_callback(FUNC(dreambal_state::bank_callback), this); + m_deco_tilegen->set_pf12_8x8_bank(0); + m_deco_tilegen->set_pf12_16x16_bank(1); + m_deco_tilegen->set_gfxdecode_tag("gfxdecode"); /* sound hardware */ SPEAKER(config, "mono").front_center(); |