summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/emumem_hws.h
diff options
context:
space:
mode:
author Vas Crabb <cuavas@users.noreply.github.com>2023-04-11 22:53:35 +1000
committer GitHub <noreply@github.com>2023-04-11 22:53:35 +1000
commitc4a9a22eb192eacdce350549c0e5523a7994ce83 (patch)
treef28aa3117955d823564b69309bc31d3825dfbf16 /src/emu/emumem_hws.h
parent62a7d7d6f425e14f9de3ef1ec50c6afb7d498ac8 (diff)
Encourage use of read/write delegate creator helpers (demo on Game Boy cartridges). (#11091)
This makes it simpler to install read-write handlers, as you don't need to think about the "smo" suffixes.
Diffstat (limited to 'src/emu/emumem_hws.h')
-rw-r--r--src/emu/emumem_hws.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/emu/emumem_hws.h b/src/emu/emumem_hws.h
index de35633f66d..baaad6c7a07 100644
--- a/src/emu/emumem_hws.h
+++ b/src/emu/emumem_hws.h
@@ -14,7 +14,7 @@
template<int Width, int AddrShift> class handler_entry_read_before_time : public handler_entry_read_passthrough<Width, AddrShift>
{
public:
- using uX = typename emu::detail::handler_entry_size<Width>::uX;
+ using uX = emu::detail::handler_entry_size_t<Width>;
handler_entry_read_before_time(address_space *space, emu::detail::memory_passthrough_handler_impl &mph, const ws_time_delegate &ws) : handler_entry_read_passthrough<Width, AddrShift>(space, mph, 13), m_ws(ws), m_cpu(downcast<cpu_device &>(space->device())) {}
~handler_entry_read_before_time() = default;
@@ -38,7 +38,7 @@ protected:
template<int Width, int AddrShift> class handler_entry_write_before_time : public handler_entry_write_passthrough<Width, AddrShift>
{
public:
- using uX = typename emu::detail::handler_entry_size<Width>::uX;
+ using uX = emu::detail::handler_entry_size_t<Width>;
handler_entry_write_before_time(address_space *space, emu::detail::memory_passthrough_handler_impl &mph, const ws_time_delegate &ws) : handler_entry_write_passthrough<Width, AddrShift>(space, mph, 13), m_ws(ws), m_cpu(downcast<cpu_device &>(space->device())) {}
~handler_entry_write_before_time() = default;
@@ -64,7 +64,7 @@ protected:
template<int Width, int AddrShift> class handler_entry_read_before_delay : public handler_entry_read_passthrough<Width, AddrShift>
{
public:
- using uX = typename emu::detail::handler_entry_size<Width>::uX;
+ using uX = emu::detail::handler_entry_size_t<Width>;
handler_entry_read_before_delay(address_space *space, emu::detail::memory_passthrough_handler_impl &mph, const ws_delay_delegate &ws) : handler_entry_read_passthrough<Width, AddrShift>(space, mph, 13), m_ws(ws), m_cpu(downcast<cpu_device &>(space->device())) {}
~handler_entry_read_before_delay() = default;
@@ -88,7 +88,7 @@ protected:
template<int Width, int AddrShift> class handler_entry_write_before_delay : public handler_entry_write_passthrough<Width, AddrShift>
{
public:
- using uX = typename emu::detail::handler_entry_size<Width>::uX;
+ using uX = emu::detail::handler_entry_size_t<Width>;
handler_entry_write_before_delay(address_space *space, emu::detail::memory_passthrough_handler_impl &mph, const ws_delay_delegate &ws) : handler_entry_write_passthrough<Width, AddrShift>(space, mph, 11), m_ws(ws), m_cpu(downcast<cpu_device &>(space->device())) {}
~handler_entry_write_before_delay() = default;
@@ -114,7 +114,7 @@ protected:
template<int Width, int AddrShift> class handler_entry_read_after_delay : public handler_entry_read_passthrough<Width, AddrShift>
{
public:
- using uX = typename emu::detail::handler_entry_size<Width>::uX;
+ using uX = emu::detail::handler_entry_size_t<Width>;
handler_entry_read_after_delay(address_space *space, emu::detail::memory_passthrough_handler_impl &mph, const ws_delay_delegate &ws) : handler_entry_read_passthrough<Width, AddrShift>(space, mph, 9), m_ws(ws), m_cpu(downcast<cpu_device &>(space->device())) {}
~handler_entry_read_after_delay() = default;
@@ -138,7 +138,7 @@ protected:
template<int Width, int AddrShift> class handler_entry_write_after_delay : public handler_entry_write_passthrough<Width, AddrShift>
{
public:
- using uX = typename emu::detail::handler_entry_size<Width>::uX;
+ using uX = emu::detail::handler_entry_size_t<Width>;
handler_entry_write_after_delay(address_space *space, emu::detail::memory_passthrough_handler_impl &mph, const ws_delay_delegate &ws) : handler_entry_write_passthrough<Width, AddrShift>(space, mph, 9), m_ws(ws), m_cpu(downcast<cpu_device &>(space->device())) {}
~handler_entry_write_after_delay() = default;