summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/hec2hrp.cpp
diff options
context:
space:
mode:
author Olivier Galibert <galibert@pobox.com>2018-01-18 19:41:45 +0100
committer Olivier Galibert <galibert@pobox.com>2018-01-31 22:03:00 +0100
commit127cd08d4d8a7ebbd5e0cbe8239fa17c8dc9b20e (patch)
treeee4db1c2bfd942142669ab820a39f8417d0a0d9d /src/mame/drivers/hec2hrp.cpp
parent86d25d4d8dae418ef39b132e9f80cc9f781b96e1 (diff)
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/hec2hrp.cpp')
-rw-r--r--src/mame/drivers/hec2hrp.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mame/drivers/hec2hrp.cpp b/src/mame/drivers/hec2hrp.cpp
index ecb73e3f77e..d4a5e2c17bf 100644
--- a/src/mame/drivers/hec2hrp.cpp
+++ b/src/mame/drivers/hec2hrp.cpp
@@ -121,6 +121,9 @@ ADDRESS_MAP_END
static ADDRESS_MAP_START(hec2hrp_mem, AS_PROGRAM, 8, hec2hrp_state )
/*****************************************************************************/
ADDRESS_MAP_UNMAP_HIGH
+ /* Main ROM page*/
+ AM_RANGE(0x0000,0x3fff) AM_ROM
+
/* Hardware address mapping*/
AM_RANGE(0x0800,0x0808) AM_WRITE(hector_switch_bank_w)/* Bank management*/
AM_RANGE(0x1000,0x1000) AM_WRITE(hector_color_a_w) /* Color c0/c1*/
@@ -130,9 +133,6 @@ static ADDRESS_MAP_START(hec2hrp_mem, AS_PROGRAM, 8, hec2hrp_state )
AM_RANGE(0x3000,0x3000) AM_READWRITE(hector_cassette_r, hector_sn_3000_w)/* Write necessary*/
AM_RANGE(0x3800,0x3807) AM_READWRITE(hector_keyboard_r, hector_keyboard_w) /* Keyboard*/
- /* Main ROM page*/
- AM_RANGE(0x0000,0x3fff) AM_ROM
-
/* Video br mapping*/
AM_RANGE(0x4000,0x49ff) AM_RAM AM_SHARE("videoram")
/* continous RAM*/
@@ -145,6 +145,9 @@ ADDRESS_MAP_END
static ADDRESS_MAP_START(hec2hrx_mem, AS_PROGRAM, 8, hec2hrp_state )
/*****************************************************************************/
ADDRESS_MAP_UNMAP_HIGH
+ /* Main ROM page*/
+ AM_RANGE(0x0000,0x3fff) AM_ROMBANK("bank2")
+
/* Hardware address mapping*/
AM_RANGE(0x0800,0x0808) AM_WRITE(hector_switch_bank_w)/* Bank management*/
AM_RANGE(0x1000,0x1000) AM_WRITE(hector_color_a_w) /* Color c0/c1*/
@@ -154,9 +157,6 @@ static ADDRESS_MAP_START(hec2hrx_mem, AS_PROGRAM, 8, hec2hrp_state )
AM_RANGE(0x3000,0x3000) AM_READWRITE(hector_cassette_r, hector_sn_3000_w)/* Write necessary*/
AM_RANGE(0x3800,0x3807) AM_READWRITE(hector_keyboard_r, hector_keyboard_w) /* Keyboard*/
- /* Main ROM page*/
- AM_RANGE(0x0000,0x3fff) AM_ROMBANK("bank2")
-
/* Video br mapping*/
AM_RANGE(0x4000,0x49ff) AM_RAM AM_SHARE("videoram")
/* continous RAM*/