# HG changeset patch # User Michael Pavone # Date 1547660958 28800 # Node ID d377d6037dd95f4e99ccc89933e42a51c7fb9ad1 # Parent b1ad6339de4f6865b877d88f8800c57245ac1329 Don't subtract chunk start from address in read_word as this is inconsistent with other consumers of memory map definitions. Fixes graphical corruption in NBA Jam TE and possibly other titles that use the Acclaim mapper with a 32Mbit ROM diff -r b1ad6339de4f -r d377d6037dd9 backend.c --- a/backend.c Fri Jan 04 19:13:47 2019 -0800 +++ b/backend.c Wed Jan 16 09:49:18 2019 -0800 @@ -99,7 +99,7 @@ if (!chunk) { return 0xFFFF; } - uint32_t offset = (address - chunk->start) & chunk->mask; + uint32_t offset = address & chunk->mask; if (chunk->flags & MMAP_READ) { uint8_t *base; if (chunk->flags & MMAP_PTR_IDX) {