summaryrefslogtreecommitdiffstats
path: root/src/mame/drivers/esh.cpp
diff options
context:
space:
mode:
authorGravatarGravatar Olivier Galibert <galibert@pobox.com>2018-02-01 10:04:01 +0100
committerGravatarGravatar Olivier Galibert <galibert@pobox.com>2018-02-12 10:04:52 +0100
commitc5219643162cb7d2a8688425a09008d28c8e2437 (patch)
treef2775ca3b1770ab0d3fb568f0bdd6d9212c68bf6 /src/mame/drivers/esh.cpp
parent09b6ce46873b38de9030a3c0378ff327f17af881 (diff)
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.
Diffstat (limited to 'src/mame/drivers/esh.cpp')
-rw-r--r--src/mame/drivers/esh.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mame/drivers/esh.cpp b/src/mame/drivers/esh.cpp
index 3d0e80247d5..8182b20d16b 100644
--- a/src/mame/drivers/esh.cpp
+++ b/src/mame/drivers/esh.cpp
@@ -70,6 +70,8 @@ public:
required_device<palette_device> m_palette;
void esh(machine_config &config);
+ void z80_0_io(address_map &map);
+ void z80_0_mem(address_map &map);
protected:
//virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
};
@@ -208,7 +210,7 @@ WRITE8_MEMBER(esh_state::nmi_line_w)
/* PROGRAM MAPS */
-static ADDRESS_MAP_START( z80_0_mem, AS_PROGRAM, 8, esh_state )
+ADDRESS_MAP_START(esh_state::z80_0_mem)
AM_RANGE(0x0000,0x3fff) AM_ROM
AM_RANGE(0xe000,0xe7ff) AM_RAM AM_SHARE("nvram")
AM_RANGE(0xf000,0xf3ff) AM_RAM AM_SHARE("tile_ram")
@@ -217,7 +219,7 @@ ADDRESS_MAP_END
/* IO MAPS */
-static ADDRESS_MAP_START( z80_0_io, AS_IO, 8, esh_state )
+ADDRESS_MAP_START(esh_state::z80_0_io)
ADDRESS_MAP_GLOBAL_MASK(0xff)
AM_RANGE(0xf0,0xf0) AM_READ_PORT("IN0")
AM_RANGE(0xf1,0xf1) AM_READ_PORT("IN1")