summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/emumem_hedr.ipp
diff options
context:
space:
mode:
author Olivier Galibert <galibert@pobox.com>2022-08-04 11:26:42 -0400
committer Olivier Galibert <galibert@pobox.com>2022-08-04 11:37:37 -0400
commit7c98beb5f4dbf5a4ba267c8a7ce7e3da65517842 (patch)
treeb9c4d57bc84b8647bf3cf859563b779f4c9c4b87 /src/emu/emumem_hedr.ipp
parent744493d3ac98a4b312b929f59dc9db3524369a31 (diff)
emumem: Add accessors lookup_{read,write]_*_flags to lookup flags without actually doing the access
Diffstat (limited to 'src/emu/emumem_hedr.ipp')
-rw-r--r--src/emu/emumem_hedr.ipp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/emu/emumem_hedr.ipp b/src/emu/emumem_hedr.ipp
index 3a192e33750..0efc37a478f 100644
--- a/src/emu/emumem_hedr.ipp
+++ b/src/emu/emumem_hedr.ipp
@@ -137,6 +137,11 @@ template<int HighBits, int Width, int AddrShift> std::pair<typename emu::detail:
return dispatch_read_flags<Level, Width, AddrShift>(HIGHMASK, offset, mem_mask, m_a_dispatch);
}
+template<int HighBits, int Width, int AddrShift> u16 handler_entry_read_dispatch<HighBits, Width, AddrShift>::lookup_flags(offs_t offset, uX mem_mask) const
+{
+ return dispatch_lookup_read_flags<Level, Width, AddrShift>(HIGHMASK, offset, mem_mask, m_a_dispatch);
+}
+
template<int HighBits, int Width, int AddrShift> void *handler_entry_read_dispatch<HighBits, Width, AddrShift>::get_ptr(offs_t offset) const
{
return m_a_dispatch[(offset & HIGHMASK) >> LowBits]->get_ptr(offset);