summaryrefslogtreecommitdiffstats
path: root/src/mame/drivers/gamepock.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/gamepock.cpp')
-rw-r--r--src/mame/drivers/gamepock.cpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/mame/drivers/gamepock.cpp b/src/mame/drivers/gamepock.cpp
index d94cc76167b..adc7e8afd8c 100644
--- a/src/mame/drivers/gamepock.cpp
+++ b/src/mame/drivers/gamepock.cpp
@@ -14,14 +14,15 @@
#include "speaker.h"
-ADDRESS_MAP_START(gamepock_state::gamepock_mem)
- ADDRESS_MAP_UNMAP_HIGH
- AM_RANGE(0x0000,0x0fff) AM_ROM
- AM_RANGE(0x1000,0x3fff) AM_NOP
+void gamepock_state::gamepock_mem(address_map &map)
+{
+ map.unmap_value_high();
+ map(0x0000, 0x0fff).rom();
+ map(0x1000, 0x3fff).noprw();
//AM_RANGE(0x4000,0xbfff) AM_ROM // mapped by the cartslot
- AM_RANGE(0xc000,0xc7ff) AM_MIRROR(0x0800) AM_RAM
- AM_RANGE(0xff80,0xffff) AM_RAM /* 128 bytes microcontroller RAM */
-ADDRESS_MAP_END
+ map(0xc000, 0xc7ff).mirror(0x0800).ram();
+ map(0xff80, 0xffff).ram(); /* 128 bytes microcontroller RAM */
+}
static INPUT_PORTS_START( gamepock )