// license:BSD-3-Clause // copyright-holders:Olivier Galibert #include "emu.h" #include "emumem_hea.h" #include "emumem_hedp.h" template template std::enable_if_t::value || std::is_same::value || std::is_same::value || std::is_same::value, typename emu::detail::handler_entry_size::uX> handler_entry_read_delegate::read_impl(offs_t offset, uX mem_mask) const { return m_delegate(*this->m_space, ((offset - this->m_address_base) & this->m_address_mask) >> (Width + AddrShift), mem_mask); } template template std::enable_if_t::value || std::is_same::value || std::is_same::value || std::is_same::value, typename emu::detail::handler_entry_size::uX> handler_entry_read_delegate::read_impl(offs_t offset, uX mem_mask) const { return m_delegate(*this->m_space, ((offset - this->m_address_base) & this->m_address_mask) >> (Width + AddrShift)); } template template std::enable_if_t::value || std::is_same::value || std::is_same::value || std::is_same::value, typename emu::detail::handler_entry_size::uX> handler_entry_read_delegate::read_impl(offs_t offset, uX mem_mask) const { return m_delegate(((offset - this->m_address_base) & this->m_address_mask) >> (Width + AddrShift), mem_mask); } template template std::enable_if_t::value || std::is_same::value || std::is_same::value || std::is_same::value, typename emu::detail::handler_entry_size::uX> handler_entry_read_delegate::read_impl(offs_t offset, uX mem_mask) const { return m_delegate(((offset - this->m_address_base) & this->m_address_mask) >> (Width + AddrShift)); } template template std::enable_if_t::value || std::is_same::value || std::is_same::value || std::is_same::value, typename emu::detail::handler_entry_size::uX> handler_entry_read_delegate::read_impl(offs_t offset, uX mem_mask) const { return m_delegate(*this->m_space); } template template std::enable_if_t::value || std::is_same::value || std::is_same::value || std::is_same::value, typename emu::detail::handler_entry_size::uX> handler_entry_read_delegate::read_impl(offs_t offset, uX mem_mask) const { return m_delegate(); } template typename emu::detail::handler_entry_size::uX handler_entry_read_delegate::read(offs_t offset, uX mem_mask) const { return read_impl(offset, mem_mask); } template std::string handler_entry_read_delegate::name() const { return m_delegate.name(); } template template std::enable_if_t::value || std::is_same::value || std::is_same::value || std::is_same::value, void> handler_entry_write_delegate::write_impl(offs_t offset, uX data, uX mem_mask) const { m_delegate(*this->m_space, ((offset - this->m_address_base) & this->m_address_mask) >> (Width + AddrShift), data, mem_mask); } template template std::enable_if_t::value || std::is_same::value || std::is_same::value || std::is_same::value, void> handler_entry_write_delegate::write_impl(offs_t offset, uX data, uX mem_mask) const { m_delegate(*this->m_space, ((offset - this->m_address_base) & this->m_address_mask) >> (Width + AddrShift), data); } template template std::enable_if_t::value || std::is_same::value || std::is_same::value || std::is_same::value, void> handler_entry_write_delegate::write_impl(offs_t offset, uX data, uX mem_mask) const { m_delegate(((offset - this->m_address_base) & this->m_address_mask) >> (Width + AddrShift), data, mem_mask); } template template std::enable_if_t::value || std::is_same::value || std::is_same::value || std::is_same::value, void> handler_entry_write_delegate::write_impl(offs_t offset, uX data, uX mem_mask) const { m_delegate(((offset - this->m_address_base) & this->m_address_mask) >> (Width + AddrShift), data); } template template std::enable_if_t::value || std::is_same::value || std::is_same::value || std::is_same::value, void> handler_entry_write_delegate::write_impl(offs_t offset, uX data, uX mem_mask) const { m_delegate(*this->m_space, data); } template template std::enable_if_t::value || std::is_same::value || std::is_same::value || std::is_same::value, void> handler_entry_write_delegate::write_impl(offs_t offset, uX data, uX mem_mask) const { m_delegate(data); } template void handler_entry_write_delegate::write(offs_t offset, uX data, uX mem_mask) const { write_impl(offset, data, mem_mask); } template std::string handler_entry_write_delegate::name() const { return m_delegate.name(); } template typename emu::detail::handler_entry_size::uX handler_entry_read_ioport::read(offs_t offset, uX mem_mask) const { return m_port->read(); } template std::string handler_entry_read_ioport::name() const { return m_port->tag(); } template void handler_entry_write_ioport::write(offs_t offset, uX data, uX mem_mask) const { m_port->write(data, mem_mask); } template std::string handler_entry_write_ioport::name() const { return m_port->tag(); } template class handler_entry_read_delegate<0, 1, read8_delegate>; template class handler_entry_read_delegate<0, 0, read8_delegate>; template class handler_entry_read_delegate<1, 3, read16_delegate>; template class handler_entry_read_delegate<1, 0, read16_delegate>; template class handler_entry_read_delegate<1, -1, read16_delegate>; template class handler_entry_read_delegate<2, 3, read32_delegate>; template class handler_entry_read_delegate<2, 0, read32_delegate>; template class handler_entry_read_delegate<2, -1, read32_delegate>; template class handler_entry_read_delegate<2, -2, read32_delegate>; template class handler_entry_read_delegate<3, 0, read64_delegate>; template class handler_entry_read_delegate<3, -1, read64_delegate>; template class handler_entry_read_delegate<3, -2, read64_delegate>; template class handler_entry_read_delegate<3, -3, read64_delegate>; template class handler_entry_read_delegate<0, 1, read8m_delegate>; template class handler_entry_read_delegate<0, 0, read8m_delegate>; template class handler_entry_read_delegate<1, 3, read16m_delegate>; template class handler_entry_read_delegate<1, 0, read16m_delegate>; template class handler_entry_read_delegate<1, -1, read16m_delegate>; template class handler_entry_read_delegate<2, 3, read32m_delegate>; template class handler_entry_read_delegate<2, 0, read32m_delegate>; template class handler_entry_read_delegate<2, -1, read32m_delegate>; template class handler_entry_read_delegate<2, -2, read32m_delegate>; template class handler_entry_read_delegate<3, 0, read64m_delegate>; template class handler_entry_read_delegate<3, -1, read64m_delegate>; template class handler_entry_read_delegate<3, -2, read64m_delegate>; template class handler_entry_read_delegate<3, -3, read64m_delegate>; template class handler_entry_read_delegate<0, 1, read8s_delegate>; template class handler_entry_read_delegate<0, 0, read8s_delegate>; template class handler_entry_read_delegate<1, 3, read16s_delegate>; template class handler_entry_read_delegate<1, 0, read16s_delegate>; template class handler_entry_read_delegate<1, -1, read16s_delegate>; template class handler_entry_read_delegate<2, 3, read32s_delegate>; template class handler_entry_read_delegate<2, 0, read32s_delegate>; template class handler_entry_read_delegate<2, -1, read32s_delegate>; template class handler_entry_read_delegate<2, -2, read32s_delegate>; template class handler_entry_read_delegate<3, 0, read64s_delegate>; template class handler_entry_read_delegate<3, -1, read64s_delegate>; template class handler_entry_read_delegate<3, -2, read64s_delegate>; template class handler_entry_read_delegate<3, -3, read64s_delegate>; template class handler_entry_read_delegate<0, 1, read8sm_delegate>; template class handler_entry_read_delegate<0, 0, read8sm_delegate>; template class handler_entry_read_delegate<1, 3, read16sm_delegate>; template class handler_entry_read_delegate<1, 0, read16sm_delegate>; template class handler_entry_read_delegate<1, -1, read16sm_delegate>; template class handler_entry_read_delegate<2, 3, read32sm_delegate>; template class handler_entry_read_delegate<2, 0, read32sm_delegate>; template class handler_entry_read_delegate<2, -1, read32sm_delegate>; template class handler_entry_read_delegate<2, -2, read32sm_delegate>; template class handler_entry_read_delegate<3, 0, read64sm_delegate>; template class handler_entry_read_delegate<3, -1, read64sm_delegate>; template class handler_entry_read_delegate<3, -2, read64sm_delegate>; template class handler_entry_read_delegate<3, -3, read64sm_delegate>; template class handler_entry_read_delegate<0, 1, read8mo_delegate>; template class handler_entry_read_delegate<0, 0, read8mo_delegate>; template class handler_entry_read_delegate<1, 3, read16mo_delegate>; template class handler_entry_read_delegate<1, 0, read16mo_delegate>; template class handler_entry_read_delegate<1, -1, read16mo_delegate>; template class handler_entry_read_delegate<2, 3, read32mo_delegate>; template class handler_entry_read_delegate<2, 0, read32mo_delegate>; template class handler_entry_read_delegate<2, -1, read32mo_delegate>; template class handler_entry_read_delegate<2, -2, read32mo_delegate>; template class handler_entry_read_delegate<3, 0, read64mo_delegate>; template class handler_entry_read_delegate<3, -1, read64mo_delegate>; template class handler_entry_read_delegate<3, -2, read64mo_delegate>; template class handler_entry_read_delegate<3, -3, read64mo_delegate>; template class handler_entry_read_delegate<0, 1, read8smo_delegate>; template class handler_entry_read_delegate<0, 0, read8smo_delegate>; template class handler_entry_read_delegate<1, 3, read16smo_delegate>; template class handler_entry_read_delegate<1, 0, read16smo_delegate>; template class handler_entry_read_delegate<1, -1, read16smo_delegate>; template class handler_entry_read_delegate<2, 3, read32smo_delegate>; template class handler_entry_read_delegate<2, 0, read32smo_delegate>; template class handler_entry_read_delegate<2, -1, read32smo_delegate>; template class handler_entry_read_delegate<2, -2, read32smo_delegate>; template class handler_entry_read_delegate<3, 0, read64smo_delegate>; template class handler_entry_read_delegate<3, -1, read64smo_delegate>; template class handler_entry_read_delegate<3, -2, read64smo_delegate>; template class handler_entry_read_delegate<3, -3, read64smo_delegate>; template class handler_entry_write_delegate<0, 1, write8_delegate>; template class handler_entry_write_delegate<0, 0, write8_delegate>; template class handler_entry_write_delegate<1, 3, write16_delegate>; template class handler_entry_write_delegate<1, 0, write16_delegate>; template class handler_entry_write_delegate<1, -1, write16_delegate>; template class handler_entry_write_delegate<2, 3, write32_delegate>; template class handler_entry_write_delegate<2, 0, write32_delegate>; template class handler_entry_write_delegate<2, -1, write32_delegate>; template class handler_entry_write_delegate<2, -2, write32_delegate>; template class handler_entry_write_delegate<3, 0, write64_delegate>; template class handler_entry_write_delegate<3, -1, write64_delegate>; template class handler_entry_write_delegate<3, -2, write64_delegate>; template class handler_entry_write_delegate<3, -3, write64_delegate>; template class handler_entry_write_delegate<0, 1, write8m_delegate>; template class handler_entry_write_delegate<0, 0, write8m_delegate>; template class handler_entry_write_delegate<1, 3, write16m_delegate>; template class handler_entry_write_delegate<1, 0, write16m_delegate>; template class handler_entry_write_delegate<1, -1, write16m_delegate>; template class handler_entry_write_delegate<2, 3, write32m_delegate>; template class handler_entry_write_delegate<2, 0, write32m_delegate>; template class handler_entry_write_delegate<2, -1, write32m_delegate>; template class handler_entry_write_delegate<2, -2, write32m_delegate>; template class handler_entry_write_delegate<3, 0, write64m_delegate>; template class handler_entry_write_delegate<3, -1, write64m_delegate>; template class handler_entry_write_delegate<3, -2, write64m_delegate>; template class handler_entry_write_delegate<3, -3, write64m_delegate>; template class handler_entry_write_delegate<0, 1, write8s_delegate>; template class handler_entry_write_delegate<0, 0, write8s_delegate>; template class handler_entry_write_delegate<1, 3, write16s_delegate>; template class handler_entry_write_delegate<1, 0, write16s_delegate>; template class handler_entry_write_delegate<1, -1, write16s_delegate>; template class handler_entry_write_delegate<2, 3, write32s_delegate>; template class handler_entry_write_delegate<2, 0, write32s_delegate>; template class handler_entry_write_delegate<2, -1, write32s_delegate>; template class handler_entry_write_delegate<2, -2, write32s_delegate>; template class handler_entry_write_delegate<3, 0, write64s_delegate>; template class handler_entry_write_delegate<3, -1, write64s_delegate>; template class handler_entry_write_delegate<3, -2, write64s_delegate>; template class handler_entry_write_delegate<3, -3, write64s_delegate>; template class handler_entry_write_delegate<0, 1, write8sm_delegate>; template class handler_entry_write_delegate<0, 0, write8sm_delegate>; template class handler_entry_write_delegate<1, 3, write16sm_delegate>; template class handler_entry_write_delegate<1, 0, write16sm_delegate>; template class handler_entry_write_delegate<1, -1, write16sm_delegate>; template class handler_entry_write_delegate<2, 3, write32sm_delegate>; template class handler_entry_write_delegate<2, 0, write32sm_delegate>; template class handler_entry_write_delegate<2, -1, write32sm_delegate>; template class handler_entry_write_delegate<2, -2, write32sm_delegate>; template class handler_entry_write_delegate<3, 0, write64sm_delegate>; template class handler_entry_write_delegate<3, -1, write64sm_delegate>; template class handler_entry_write_delegate<3, -2, write64sm_delegate>; template class handler_entry_write_delegate<3, -3, write64sm_delegate>; template class handler_entry_write_delegate<0, 1, write8mo_delegate>; template class handler_entry_write_delegate<0, 0, write8mo_delegate>; template class handler_entry_write_delegate<1, 3, write16mo_delegate>; template class handler_entry_write_delegate<1, 0, write16mo_delegate>; template class handler_entry_write_delegate<1, -1, write16mo_delegate>; template class handler_entry_write_delegate<2, 3, write32mo_delegate>; template class handler_entry_write_delegate<2, 0, write32mo_delegate>; template class handler_entry_write_delegate<2, -1, write32mo_delegate>; template class handler_entry_write_delegate<2, -2, write32mo_delegate>; template class handler_entry_write_delegate<3, 0, write64mo_delegate>; template class handler_entry_write_delegate<3, -1, write64mo_delegate>; template class handler_entry_write_delegate<3, -2, write64mo_delegate>; template class handler_entry_write_delegate<3, -3, write64mo_delegate>; template class handler_entry_write_delegate<0, 1, write8smo_delegate>; template class handler_entry_write_delegate<0, 0, write8smo_delegate>; template class handler_entry_write_delegate<1, 3, write16smo_delegate>; template class handler_entry_write_delegate<1, 0, write16smo_delegate>; template class handler_entry_write_delegate<1, -1, write16smo_delegate>; template class handler_entry_write_delegate<2, 3, write32smo_delegate>; template class handler_entry_write_delegate<2, 0, write32smo_delegate>; template class handler_entry_write_delegate<2, -1, write32smo_delegate>; template class handler_entry_write_delegate<2, -2, write32smo_delegate>; template class handler_entry_write_delegate<3, 0, write64smo_delegate>; template class handler_entry_write_delegate<3, -1, write64smo_delegate>; template class handler_entry_write_delegate<3, -2, write64smo_delegate>; template class handler_entry_write_delegate<3, -3, write64smo_delegate>; template class handler_entry_read_ioport<0, 1>; template class handler_entry_read_ioport<0, 0>; template class handler_entry_read_ioport<1, 3>; template class handler_entry_read_ioport<1, 0>; template class handler_entry_read_ioport<1, -1>; template class handler_entry_read_ioport<2, 3>; template class handler_entry_read_ioport<2, 0>; template class handler_entry_read_ioport<2, -1>; template class handler_entry_read_ioport<2, -2>; template class handler_entry_read_ioport<3, 0>; template class handler_entry_read_ioport<3, -1>; template class handler_entry_read_ioport<3, -2>; template class handler_entry_read_ioport<3, -3>; template class handler_entry_write_ioport<0, 1>; template class handler_entry_write_ioport<0, 0>; template class handler_entry_write_ioport<1, 3>; template class handler_entry_write_ioport<1, 0>; template class handler_entry_write_ioport<1, -1>; template class handler_entry_write_ioport<2, 3>; template class handler_entry_write_ioport<2, 0>; template class handler_entry_write_ioport<2, -1>; template class handler_entry_write_ioport<2, -2>; template class handler_entry_write_ioport<3, 0>; template class handler_entry_write_ioport<3, -1>; template class handler_entry_write_ioport<3, -2>; template class handler_entry_write_ioport<3, -3>;