summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/megadrive
diff options
context:
space:
mode:
author Olivier Galibert <galibert@pobox.com>2018-03-13 07:36:43 +0100
committer Olivier Galibert <galibert@pobox.com>2018-03-14 14:07:14 +0100
commit115bb9936c5cd3faf955d7eb1e251a94e4744b7b (patch)
treef0230f547f6c750f9974c61479eef28cbe4ad571 /src/devices/bus/megadrive
parentf155992daab88ad024cec995428a67108218b51d (diff)
Address maps macros removal, pass 1 [O. Galibert]
Diffstat (limited to 'src/devices/bus/megadrive')
-rw-r--r--src/devices/bus/megadrive/svp.cpp30
1 files changed, 16 insertions, 14 deletions
diff --git a/src/devices/bus/megadrive/svp.cpp b/src/devices/bus/megadrive/svp.cpp
index d069a556ecd..31228f6ddca 100644
--- a/src/devices/bus/megadrive/svp.cpp
+++ b/src/devices/bus/megadrive/svp.cpp
@@ -318,27 +318,29 @@ INPUT_PORTS_END
// ADDRESS_MAP( svp_ssp_map )
//-------------------------------------------------
-ADDRESS_MAP_START(md_rom_svp_device::md_svp_ssp_map)
+void md_rom_svp_device::md_svp_ssp_map(address_map &map)
+{
// AM_RANGE(0x0000, 0x03ff) AM_READ(rom_read1)
// AM_RANGE(0x0400, 0xffff) AM_READ(rom_read2)
- AM_RANGE(0x0000, 0x03ff) AM_ROMBANK("iram_svp")
- AM_RANGE(0x0400, 0xffff) AM_ROMBANK("cart_svp")
-ADDRESS_MAP_END
+ map(0x0000, 0x03ff).bankr("iram_svp");
+ map(0x0400, 0xffff).bankr("cart_svp");
+}
//-------------------------------------------------
// ADDRESS_MAP( svp_ext_map )
//-------------------------------------------------
-ADDRESS_MAP_START(md_rom_svp_device::md_svp_ext_map)
- ADDRESS_MAP_GLOBAL_MASK(0xf)
- AM_RANGE(0*2, 0*2+1) AM_READWRITE(read_pm0, write_pm0)
- AM_RANGE(1*2, 1*2+1) AM_READWRITE(read_pm1, write_pm1)
- AM_RANGE(2*2, 2*2+1) AM_READWRITE(read_pm2, write_pm2)
- AM_RANGE(3*2, 3*2+1) AM_READWRITE(read_xst, write_xst)
- AM_RANGE(4*2, 4*2+1) AM_READWRITE(read_pm4, write_pm4)
- AM_RANGE(6*2, 6*2+1) AM_READWRITE(read_pmc, write_pmc)
- AM_RANGE(7*2, 7*2+1) AM_READWRITE(read_al, write_al)
-ADDRESS_MAP_END
+void md_rom_svp_device::md_svp_ext_map(address_map &map)
+{
+ map.global_mask(0xf);
+ map(0*2, 0*2+1).rw(this, FUNC(md_rom_svp_device::read_pm0), FUNC(md_rom_svp_device::write_pm0));
+ map(1*2, 1*2+1).rw(this, FUNC(md_rom_svp_device::read_pm1), FUNC(md_rom_svp_device::write_pm1));
+ map(2*2, 2*2+1).rw(this, FUNC(md_rom_svp_device::read_pm2), FUNC(md_rom_svp_device::write_pm2));
+ map(3*2, 3*2+1).rw(this, FUNC(md_rom_svp_device::read_xst), FUNC(md_rom_svp_device::write_xst));
+ map(4*2, 4*2+1).rw(this, FUNC(md_rom_svp_device::read_pm4), FUNC(md_rom_svp_device::write_pm4));
+ map(6*2, 6*2+1).rw(this, FUNC(md_rom_svp_device::read_pmc), FUNC(md_rom_svp_device::write_pmc));
+ map(7*2, 7*2+1).rw(this, FUNC(md_rom_svp_device::read_al), FUNC(md_rom_svp_device::write_al));
+}
//-------------------------------------------------