Previous 199869 Revisions Next

r33786 Wednesday 10th December, 2014 at 02:18:05 UTC by Alex W. Jackson
Fix debugger memory display of little-endian memory regions [Alex Jackson]
[src/emu]emucore.h
[src/emu/debug]dvmemory.c

trunk/src/emu/debug/dvmemory.c
r242297r242298
6161      m_memintf(NULL),
6262      m_base(region.base()),
6363      m_length(region.bytes()),
64      m_offsetxor(NATIVE_ENDIAN_VALUE_LE_BE(region.bytewidth() - 1, 0)),
64      m_offsetxor(ENDIAN_VALUE_NE_NNE(region.endianness(), 0, region.bytewidth() - 1)),
6565      m_endianness(region.endianness()),
6666      m_prefsize(MIN(region.bytewidth(), 8))
6767{
trunk/src/emu/emucore.h
r242297r242298
239239#define NATIVE_ENDIAN_VALUE_LE_BE(leval,beval)  ENDIAN_VALUE_LE_BE(ENDIANNESS_NATIVE, leval, beval)
240240
241241// endian-based value: first value is if 'endian' matches native, second is if 'endian' doesn't match native
242#define ENDIAN_VALUE_NE_NNE(endian,leval,beval) (((endian) == ENDIANNESS_NATIVE) ? (neval) : (nneval))
242#define ENDIAN_VALUE_NE_NNE(endian,neval,nneval) (((endian) == ENDIANNESS_NATIVE) ? (neval) : (nneval))
243243
244244
245245// useful macros to deal with bit shuffling encryptions


Previous 199869 Revisions Next


© 1997-2024 The MAME Team