summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/dreambal.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/dreambal.cpp')
-rw-r--r--src/mame/drivers/dreambal.cpp37
1 files changed, 19 insertions, 18 deletions
diff --git a/src/mame/drivers/dreambal.cpp b/src/mame/drivers/dreambal.cpp
index d8e5f64a3e0..53343842402 100644
--- a/src/mame/drivers/dreambal.cpp
+++ b/src/mame/drivers/dreambal.cpp
@@ -111,33 +111,34 @@ WRITE16_MEMBER( dreambal_state::dreambal_protection_region_0_104_w )
m_deco104->write_data( space, deco146_addr, data, mem_mask, cs );
}
-ADDRESS_MAP_START(dreambal_state::dreambal_map)
+void dreambal_state::dreambal_map(address_map &map)
+{
//ADDRESS_MAP_UNMAP_HIGH
- AM_RANGE(0x000000, 0x07ffff) AM_ROM
- AM_RANGE(0x100000, 0x100fff) AM_DEVREADWRITE("tilegen1", deco16ic_device, pf1_data_r, pf1_data_w)
- AM_RANGE(0x101000, 0x101fff) AM_RAM
- AM_RANGE(0x102000, 0x102fff) AM_DEVREADWRITE("tilegen1", deco16ic_device, pf2_data_r, pf2_data_w)
- AM_RANGE(0x103000, 0x103fff) AM_RAM
+ map(0x000000, 0x07ffff).rom();
+ map(0x100000, 0x100fff).rw(m_deco_tilegen1, 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(0x103000, 0x103fff).ram();
- AM_RANGE(0x120000, 0x123fff) AM_RAM
- AM_RANGE(0x140000, 0x1403ff) AM_RAM_DEVWRITE("palette", palette_device, write16) AM_SHARE("palette")
+ map(0x120000, 0x123fff).ram();
+ map(0x140000, 0x1403ff).ram().w("palette", FUNC(palette_device::write16)).share("palette");
- AM_RANGE(0x160000, 0x163fff) AM_READWRITE(dreambal_protection_region_0_104_r,dreambal_protection_region_0_104_w)AM_SHARE("prot16ram") /* Protection device */
+ map(0x160000, 0x163fff).rw(this, FUNC(dreambal_state::dreambal_protection_region_0_104_r), FUNC(dreambal_state::dreambal_protection_region_0_104_w)).share("prot16ram"); /* Protection device */
- AM_RANGE(0x161000, 0x16100f) AM_DEVWRITE("tilegen1", deco16ic_device, pf_control_w)
+ map(0x161000, 0x16100f).w(m_deco_tilegen1, FUNC(deco16ic_device::pf_control_w));
- AM_RANGE(0x180000, 0x180001) AM_DEVREADWRITE8("oki", okim6295_device, read, write, 0x00ff)
+ map(0x180001, 0x180001).rw("oki", FUNC(okim6295_device::read), FUNC(okim6295_device::write));
- AM_RANGE(0x162000, 0x162001) AM_WRITENOP // writes 0003 on startup
- AM_RANGE(0x163000, 0x163001) AM_WRITENOP // something on bit 1
- AM_RANGE(0x164000, 0x164001) AM_WRITENOP // something on bit 1
+ map(0x162000, 0x162001).nopw(); // writes 0003 on startup
+ map(0x163000, 0x163001).nopw(); // something on bit 1
+ map(0x164000, 0x164001).nopw(); // something on bit 1
- AM_RANGE(0x165000, 0x165001) AM_WRITE( dreambal_eeprom_w ) // EEP Write?
+ map(0x165000, 0x165001).w(this, FUNC(dreambal_state::dreambal_eeprom_w)); // EEP Write?
- AM_RANGE(0x16c002, 0x16c00d) AM_WRITENOP // writes 0000 to 0005 on startup
- AM_RANGE(0x1a0000, 0x1a0003) AM_WRITENOP // RS-232C status / data ports (byte access)
-ADDRESS_MAP_END
+ map(0x16c002, 0x16c00d).nopw(); // writes 0000 to 0005 on startup
+ map(0x1a0000, 0x1a0003).nopw(); // RS-232C status / data ports (byte access)
+}
static const gfx_layout tile_8x8_layout =