Previous 15994 Revisions Next

r15893 Tuesday 14th August, 2012 at 10:35:21 UTC by Olivier Galibert
addrmap: Fix device mapping on big-endian systems [O. Galibert]
[src/emu]addrmap.c

src/emu/addrmap.c
r15892r15893
896896         // mask consistency has already been checked in
897897         // unitmask_is_appropriate, so one bit is enough
898898         for (int slot=0; slot < max_slot_count; slot++)
899            if (global_mask & (1ULL << (slot * entry_bits)))
899            if (global_mask & (1ULL << ((slot ^ slot_xor_mask) * entry_bits)))
900900               slot_offset[slot_count++] = (slot ^ slot_xor_mask) * entry_bits;
901901
902902         // Merge in all the map contents in order

Previous 15994 Revisions Next


© 1998-2018 The MESS Team