diff options
author | 2020-08-17 16:24:46 +0200 | |
---|---|---|
committer | 2020-08-17 16:24:46 +0200 | |
commit | 96921ccac9eeb27cf699c52e7e9eb64cfcfb71da (patch) | |
tree | 9ce7f6114c63e43e1f3d5a3e5ca166d30eee2565 /src/lib/netlist/devices/nld_roms.cpp | |
parent | dd47a15e3a9078a022fa1d5142dd59b2bbb8decd (diff) |
-netlist: Properly fixed 74165 implementation. Fixed MK28000 address latching.
Diffstat (limited to 'src/lib/netlist/devices/nld_roms.cpp')
-rw-r--r-- | src/lib/netlist/devices/nld_roms.cpp | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/src/lib/netlist/devices/nld_roms.cpp b/src/lib/netlist/devices/nld_roms.cpp index fb55010f95f..d39324e226f 100644 --- a/src/lib/netlist/devices/nld_roms.cpp +++ b/src/lib/netlist/devices/nld_roms.cpp @@ -31,7 +31,7 @@ namespace netlist , m_enable_hi(*this, "m_enable_hi", false) , m_latched_rom(*this, "m_latched_rom", 0) , m_A(*this, 1, "A{}", NETLIB_DELEGATE(addr)) - , m_ARQ(*this, "ARQ", NETLIB_DELEGATE(arq)) + , m_ARQ(*this, "ARQ", NETLIB_DELEGATE(addr)) , m_OE1(*this, "OE1", NETLIB_DELEGATE(oe1)) , m_OE2(*this, "OE2", NETLIB_DELEGATE(oe2)) , m_O(*this, 1, "O{}", 0) @@ -41,14 +41,6 @@ namespace netlist } private: - inline NETLIB_HANDLERI(arq) - { - if (m_ARQ() == 0) - { - m_latched_rom = m_ROM[m_A()]; - } - } - inline NETLIB_HANDLERI(oe1) { m_enable_lo = m_OE1(); @@ -73,6 +65,11 @@ namespace netlist inline NETLIB_HANDLERI(addr) { + if (!m_ARQ()) + { + uint16_t addr = m_A(); + m_latched_rom = m_ROM[addr]; + } uint8_t o = (m_enable_hi || m_enable_lo) ? m_latched_rom : 0; for (std::size_t i=0; i<4; i++) { |