From a83d26b101dbd1b5c9c88f313e666d0b2c73dc90 Mon Sep 17 00:00:00 2001 From: amameuser <64736148+amameuser@users.noreply.github.com> Date: Mon, 29 Jan 2024 18:33:21 +0000 Subject: emu/memarray.cpp: Fix little Endian byte read/write to 64-bit areas. (#11985) Apparent copy/paste error was causing big Endian semantics to be used. --- src/emu/memarray.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/emu/memarray.cpp b/src/emu/memarray.cpp index 660e07ad9a1..eb03974ff1c 100644 --- a/src/emu/memarray.cpp +++ b/src/emu/memarray.cpp @@ -134,8 +134,8 @@ void memory_array::write8_to_32le(int index, u32 data) { reinterpret_cast( u32 memory_array::read8_from_32be(int index) const { return reinterpret_cast(m_base)[BYTE4_XOR_BE(index)]; } void memory_array::write8_to_32be(int index, u32 data) { reinterpret_cast(m_base)[BYTE4_XOR_BE(index)] = data; } -u32 memory_array::read8_from_64le(int index) const { return reinterpret_cast(m_base)[BYTE8_XOR_BE(index)]; } -void memory_array::write8_to_64le(int index, u32 data) { reinterpret_cast(m_base)[BYTE8_XOR_BE(index)] = data; } +u32 memory_array::read8_from_64le(int index) const { return reinterpret_cast(m_base)[BYTE8_XOR_LE(index)]; } +void memory_array::write8_to_64le(int index, u32 data) { reinterpret_cast(m_base)[BYTE8_XOR_LE(index)] = data; } u32 memory_array::read8_from_64be(int index) const { return reinterpret_cast(m_base)[BYTE8_XOR_BE(index)]; } void memory_array::write8_to_64be(int index, u32 data) { reinterpret_cast(m_base)[BYTE8_XOR_BE(index)] = data; } -- cgit v1.2.3