mirror of
https://github.com/holub/mame
synced 2025-04-25 09:50:04 +03:00
addrmap: Fix device mapping on big-endian systems [O. Galibert]
This commit is contained in:
parent
6f8af5deb3
commit
92b868cda0
@ -896,7 +896,7 @@ void address_map::uplift_submaps(running_machine &machine, device_t &device, end
|
||||
// mask consistency has already been checked in
|
||||
// unitmask_is_appropriate, so one bit is enough
|
||||
for (int slot=0; slot < max_slot_count; slot++)
|
||||
if (global_mask & (1ULL << (slot * entry_bits)))
|
||||
if (global_mask & (1ULL << ((slot ^ slot_xor_mask) * entry_bits)))
|
||||
slot_offset[slot_count++] = (slot ^ slot_xor_mask) * entry_bits;
|
||||
|
||||
// Merge in all the map contents in order
|
||||
|
Loading…
Reference in New Issue
Block a user