diff options
Diffstat (limited to 'src/emu/memory.c')
-rw-r--r-- | src/emu/memory.c | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/src/emu/memory.c b/src/emu/memory.c index cf7e713d4d7..70bbd21d7c4 100644 --- a/src/emu/memory.c +++ b/src/emu/memory.c @@ -931,11 +931,16 @@ private: template<typename _UintType> _UintType unmap_r(address_space &space, offs_t offset, _UintType mask) { + device_execute_interface *intf; + bool is_octal = false; + if (m_space.device().interface(intf)) + is_octal = intf->is_octal(); + if (m_space.log_unmap() && !m_space.debugger_access()) logerror("%s: unmapped %s memory read from %s & %s\n", m_space.machine().describe_context(), m_space.name(), - core_i64_format(m_space.byte_to_address(offset * sizeof(_UintType)), m_space.addrchars(),m_space.machine().is_octal()), - core_i64_format(mask, 2 * sizeof(_UintType),m_space.machine().is_octal())); + core_i64_format(m_space.byte_to_address(offset * sizeof(_UintType)), m_space.addrchars(),is_octal), + core_i64_format(mask, 2 * sizeof(_UintType),is_octal)); return m_space.unmap(); } @@ -997,12 +1002,17 @@ private: template<typename _UintType> void unmap_w(address_space &space, offs_t offset, _UintType data, _UintType mask) { + device_execute_interface *intf; + bool is_octal = false; + if (m_space.device().interface(intf)) + is_octal = intf->is_octal(); + if (m_space.log_unmap() && !m_space.debugger_access()) logerror("%s: unmapped %s memory write to %s = %s & %s\n", m_space.machine().describe_context(), m_space.name(), - core_i64_format(m_space.byte_to_address(offset * sizeof(_UintType)), m_space.addrchars(),m_space.machine().is_octal()), - core_i64_format(data, 2 * sizeof(_UintType),m_space.machine().is_octal()), - core_i64_format(mask, 2 * sizeof(_UintType),m_space.machine().is_octal())); + core_i64_format(m_space.byte_to_address(offset * sizeof(_UintType)), m_space.addrchars(),is_octal), + core_i64_format(data, 2 * sizeof(_UintType),is_octal), + core_i64_format(mask, 2 * sizeof(_UintType),is_octal)); } template<typename _UintType> |