summaryrefslogtreecommitdiffstats
path: root/src/mame/drivers/expro02.cpp
diff options
context:
space:
mode:
authorGravatarGravatar Olivier Galibert <galibert@pobox.com>2018-01-18 19:41:45 +0100
committerGravatarGravatar Olivier Galibert <galibert@pobox.com>2018-01-31 22:03:00 +0100
commit127cd08d4d8a7ebbd5e0cbe8239fa17c8dc9b20e (patch) (github)
treeee4db1c2bfd942142669ab820a39f8417d0a0d9d /src/mame/drivers/expro02.cpp
parent86d25d4d8dae418ef39b132e9f80cc9f781b96e1 (diff)
downloadmame-127cd08d4d8a7ebbd5e0cbe8239fa17c8dc9b20e.tar.bz2
mame-127cd08d4d8a7ebbd5e0cbe8239fa17c8dc9b20e.zip
API change: Memory maps are now "last entry wins" [O. Galibert]
This allows for the much more natural "import another map and patch it" structure, or "cover a whole region then punch holes in it". Our previous first-entry-wins rule was always a surprise to newcomers, and oldcomers too.
Diffstat (limited to 'src/mame/drivers/expro02.cpp')
-rw-r--r--src/mame/drivers/expro02.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/mame/drivers/expro02.cpp b/src/mame/drivers/expro02.cpp
index 1ce70483735..7216eb7b169 100644
--- a/src/mame/drivers/expro02.cpp
+++ b/src/mame/drivers/expro02.cpp
@@ -740,6 +740,8 @@ ADDRESS_MAP_END
static ADDRESS_MAP_START( galhustl_map, AS_PROGRAM, 16, expro02_state )
+ AM_IMPORT_FROM(expro02_video_base_map_noview2)
+
AM_RANGE(0x000000, 0x0fffff) AM_ROM
AM_RANGE(0x200000, 0x2fffff) AM_ROM AM_REGION("maincpudata", 0)
@@ -752,12 +754,11 @@ static ADDRESS_MAP_START( galhustl_map, AS_PROGRAM, 16, expro02_state )
AM_RANGE(0xe80000, 0xe8ffff) AM_RAM
AM_RANGE(0x780000, 0x78001f) AM_NOP // prevent sprites being flipped
-
- AM_IMPORT_FROM(expro02_video_base_map_noview2)
-
ADDRESS_MAP_END
static ADDRESS_MAP_START( zipzap_map, AS_PROGRAM, 16, expro02_state )
+ AM_IMPORT_FROM(expro02_video_base_map_noview2)
+
AM_RANGE(0x000000, 0x4fffff) AM_ROM
AM_RANGE(0x701000, 0x71ffff) AM_RAM
AM_RANGE(0x800000, 0x800001) AM_READ_PORT("DSW1")
@@ -768,8 +769,6 @@ static ADDRESS_MAP_START( zipzap_map, AS_PROGRAM, 16, expro02_state )
AM_RANGE(0xc80000, 0xc8ffff) AM_RAM // main ram
AM_RANGE(0x780000, 0x78001f) AM_NOP // prevent sprites being flipped
-
- AM_IMPORT_FROM(expro02_video_base_map_noview2)
ADDRESS_MAP_END
static ADDRESS_MAP_START( supmodel_map, AS_PROGRAM, 16, expro02_state )