From b7eac7bf5e53a0e79e54d8b31167838cd02b623b Mon Sep 17 00:00:00 2001 From: hap Date: Sat, 1 Aug 2020 20:57:30 +0200 Subject: [PATCH] addrmap: remove unsupported setter, emumem enforces unmapval 0 or ~0 --- src/devices/bus/odyssey2/chess.cpp | 4 ++-- src/devices/cpu/h16/hd641016.cpp | 2 +- src/emu/addrmap.h | 1 - 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);