From c5219643162cb7d2a8688425a09008d28c8e2437 Mon Sep 17 00:00:00 2001 From: Olivier Galibert Date: Thu, 1 Feb 2018 10:04:01 +0100 Subject: API change: Memory maps are now methods of the owner class [O. Galibert] Also, a lot more freedom happened, that's going to be more visible soon. --- src/mame/drivers/dlair.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/mame/drivers/dlair.cpp') diff --git a/src/mame/drivers/dlair.cpp b/src/mame/drivers/dlair.cpp index 49cb99ef855..43baef0ea2f 100644 --- a/src/mame/drivers/dlair.cpp +++ b/src/mame/drivers/dlair.cpp @@ -136,6 +136,9 @@ public: void dlair_pr7820(machine_config &config); void dleuro(machine_config &config); void dlair_ldv1000(machine_config &config); + void dleuro_io_map(address_map &map); + void dleuro_map(address_map &map); + void dlus_map(address_map &map); }; @@ -365,7 +368,7 @@ WRITE8_MEMBER(dlair_state::laserdisc_w) *************************************/ /* complete memory map derived from schematics */ -static ADDRESS_MAP_START( dlus_map, AS_PROGRAM, 8, dlair_state ) +ADDRESS_MAP_START(dlair_state::dlus_map) AM_RANGE(0x0000, 0x9fff) AM_ROM AM_RANGE(0xa000, 0xa7ff) AM_MIRROR(0x1800) AM_RAM AM_RANGE(0xc000, 0xc000) AM_MIRROR(0x1fc7) AM_DEVREAD("aysnd", ay8910_device, data_r) @@ -389,7 +392,7 @@ ADDRESS_MAP_END *************************************/ /* complete memory map derived from schematics */ -static ADDRESS_MAP_START( dleuro_map, AS_PROGRAM, 8, dlair_state ) +ADDRESS_MAP_START(dlair_state::dleuro_map) AM_RANGE(0x0000, 0x9fff) AM_ROM AM_RANGE(0xa000, 0xa7ff) AM_MIRROR(0x1800) AM_RAM AM_RANGE(0xc000, 0xc7ff) AM_MIRROR(0x1800) AM_RAM AM_SHARE("videoram") @@ -409,7 +412,7 @@ ADDRESS_MAP_END /* complete memory map derived from schematics */ -static ADDRESS_MAP_START( dleuro_io_map, AS_IO, 8, dlair_state ) +ADDRESS_MAP_START(dlair_state::dleuro_io_map) ADDRESS_MAP_GLOBAL_MASK(0xff) AM_RANGE(0x00, 0x03) AM_MIRROR(0x7c) AM_DEVREADWRITE("ctc", z80ctc_device, read, write) AM_RANGE(0x80, 0x83) AM_MIRROR(0x7c) AM_DEVREADWRITE("sio", z80sio_device, ba_cd_r, ba_cd_w) -- cgit v1.2.3