diff options
author | 2024-01-29 18:33:21 +0000 | |
---|---|---|
committer | 2024-01-30 05:33:21 +1100 | |
commit | a83d26b101dbd1b5c9c88f313e666d0b2c73dc90 (patch) | |
tree | 7d258d10ddc6837084d1e17f2b9ea418525847c2 /src/emu/memarray.cpp | |
parent | 63c77f65fbe3b84aa7d1b9f2ac7c0f4dbcef0bd2 (diff) |
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.
Diffstat (limited to 'src/emu/memarray.cpp')
-rw-r--r-- | src/emu/memarray.cpp | 4 |
1 files 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<u8 *>( u32 memory_array::read8_from_32be(int index) const { return reinterpret_cast<u8 *>(m_base)[BYTE4_XOR_BE(index)]; } void memory_array::write8_to_32be(int index, u32 data) { reinterpret_cast<u8 *>(m_base)[BYTE4_XOR_BE(index)] = data; } -u32 memory_array::read8_from_64le(int index) const { return reinterpret_cast<u8 *>(m_base)[BYTE8_XOR_BE(index)]; } -void memory_array::write8_to_64le(int index, u32 data) { reinterpret_cast<u8 *>(m_base)[BYTE8_XOR_BE(index)] = data; } +u32 memory_array::read8_from_64le(int index) const { return reinterpret_cast<u8 *>(m_base)[BYTE8_XOR_LE(index)]; } +void memory_array::write8_to_64le(int index, u32 data) { reinterpret_cast<u8 *>(m_base)[BYTE8_XOR_LE(index)] = data; } u32 memory_array::read8_from_64be(int index) const { return reinterpret_cast<u8 *>(m_base)[BYTE8_XOR_BE(index)]; } void memory_array::write8_to_64be(int index, u32 data) { reinterpret_cast<u8 *>(m_base)[BYTE8_XOR_BE(index)] = data; } |