Mercurial > repos > blastem
comparison backend.c @ 1696:956c1cce05e2 mame_interp
Merge from default
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Thu, 24 Jan 2019 19:15:59 -0800 |
parents | b7ecd0d6a77b d377d6037dd9 |
children | 8fe162bdb038 |
comparison
equal
deleted
inserted
replaced
1648:b7ecd0d6a77b | 1696:956c1cce05e2 |
---|---|
99 { | 99 { |
100 memmap_chunk const *chunk = find_map_chunk(address, opts, 0, NULL); | 100 memmap_chunk const *chunk = find_map_chunk(address, opts, 0, NULL); |
101 if (!chunk) { | 101 if (!chunk) { |
102 return 0xFFFF; | 102 return 0xFFFF; |
103 } | 103 } |
104 uint32_t offset = (address - chunk->start) & chunk->mask; | 104 uint32_t offset = address & chunk->mask; |
105 if (chunk->flags & MMAP_READ) { | 105 if (chunk->flags & MMAP_READ) { |
106 uint8_t *base; | 106 uint8_t *base; |
107 if (chunk->flags & MMAP_PTR_IDX) { | 107 if (chunk->flags & MMAP_PTR_IDX) { |
108 base = mem_pointers[chunk->ptr_index]; | 108 base = mem_pointers[chunk->ptr_index]; |
109 } else { | 109 } else { |