mirror of
https://github.com/holub/mame
synced 2025-04-22 08:22:15 +03:00
Fix debugger memory display of little-endian memory regions [Alex Jackson]
This commit is contained in:
parent
b5f303f809
commit
adfefa9f34
@ -61,7 +61,7 @@ debug_view_memory_source::debug_view_memory_source(const char *name, memory_regi
|
||||
m_memintf(NULL),
|
||||
m_base(region.base()),
|
||||
m_length(region.bytes()),
|
||||
m_offsetxor(NATIVE_ENDIAN_VALUE_LE_BE(region.bytewidth() - 1, 0)),
|
||||
m_offsetxor(ENDIAN_VALUE_NE_NNE(region.endianness(), 0, region.bytewidth() - 1)),
|
||||
m_endianness(region.endianness()),
|
||||
m_prefsize(MIN(region.bytewidth(), 8))
|
||||
{
|
||||
|
@ -239,7 +239,7 @@ inline void operator--(_Type &value, int) { value = (_Type)((int)value - 1); }
|
||||
#define NATIVE_ENDIAN_VALUE_LE_BE(leval,beval) ENDIAN_VALUE_LE_BE(ENDIANNESS_NATIVE, leval, beval)
|
||||
|
||||
// endian-based value: first value is if 'endian' matches native, second is if 'endian' doesn't match native
|
||||
#define ENDIAN_VALUE_NE_NNE(endian,leval,beval) (((endian) == ENDIANNESS_NATIVE) ? (neval) : (nneval))
|
||||
#define ENDIAN_VALUE_NE_NNE(endian,neval,nneval) (((endian) == ENDIANNESS_NATIVE) ? (neval) : (nneval))
|
||||
|
||||
|
||||
// useful macros to deal with bit shuffling encryptions
|
||||
|
Loading…
Reference in New Issue
Block a user