summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author hap <happppp@users.noreply.github.com>2020-08-01 20:57:30 +0200
committer hap <happppp@users.noreply.github.com>2020-08-01 20:57:30 +0200
commitb7eac7bf5e53a0e79e54d8b31167838cd02b623b (patch)
treeeabf0da3054757c16e68790c2ff57b224456ae12
parentb744e341ef31dd11fb5669e1108cb57e0a60f17d (diff)
addrmap: remove unsupported setter, emumem enforces unmapval 0 or ~0
-rw-r--r--src/devices/bus/odyssey2/chess.cpp4
-rw-r--r--src/devices/cpu/h16/hd641016.cpp2
-rw-r--r--src/emu/addrmap.h1
3 files changed, 3 insertions, 4 deletions
diff --git a/src/devices/bus/odyssey2/chess.cpp b/src/devices/bus/odyssey2/chess.cpp
index f1a871f1000..6dd254c62d1 100644
--- a/src/devices/bus/odyssey2/chess.cpp
+++ b/src/devices/bus/odyssey2/chess.cpp
@@ -54,8 +54,8 @@ void o2_chess_device::chess_mem(address_map &map)
void o2_chess_device::chess_io(address_map &map)
{
- map.global_mask(0x01);
- map(0x00, 0x01).r(m_latch[1], FUNC(generic_latch_8_device::read)).w(m_latch[0], FUNC(generic_latch_8_device::write));
+ map.global_mask(0xff);
+ map(0x00, 0x00).mirror(0xff).r(m_latch[1], FUNC(generic_latch_8_device::read)).w(m_latch[0], FUNC(generic_latch_8_device::write));
}
diff --git a/src/devices/cpu/h16/hd641016.cpp b/src/devices/cpu/h16/hd641016.cpp
index 2fa5249d562..b52b50c20bf 100644
--- a/src/devices/cpu/h16/hd641016.cpp
+++ b/src/devices/cpu/h16/hd641016.cpp
@@ -42,7 +42,7 @@ void hd641016_device::ram_map(address_map &map)
void hd641016_device::io_map(address_map &map)
{
- map.unmap_value(0);
+ map.unmap_value_low();
//map(0x128, 0x129).rw(FUNC(hd641016_device::abr0_r), FUNC(hd641016_device::abr0_w));
//map(0x12a, 0x12b).rw(FUNC(hd641016_device::arr0_r), FUNC(hd641016_device::arr0_w));
//map(0x12c, 0x12d).rw(FUNC(hd641016_device::awcr0_r), FUNC(hd641016_device::awcr0_w));
diff --git a/src/emu/addrmap.h b/src/emu/addrmap.h
index b201201c4dd..1795f9808a5 100644
--- a/src/emu/addrmap.h
+++ b/src/emu/addrmap.h
@@ -483,7 +483,6 @@ public:
void global_mask(offs_t mask);
void unmap_value_low() { m_unmapval = 0; }
void unmap_value_high() { m_unmapval = ~0; }
- void unmap_value(u8 value) { m_unmapval = value; }
// add a new entry of the given type
address_map_entry &operator()(offs_t start, offs_t end);