Mercurial > repos > blastem
comparison backend.c @ 1648:b7ecd0d6a77b mame_interp
Merge from default
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Tue, 25 Dec 2018 11:12:26 -0800 |
parents | 2455662378ed 1f745318f10a |
children | 956c1cce05e2 |
comparison
equal
deleted
inserted
replaced
1509:36732f5c2281 | 1648:b7ecd0d6a77b |
---|---|
75 memmap_chunk const * memmap = opts->memmap; | 75 memmap_chunk const * memmap = opts->memmap; |
76 address &= opts->address_mask; | 76 address &= opts->address_mask; |
77 for (uint32_t chunk = 0; chunk < opts->memmap_chunks; chunk++) | 77 for (uint32_t chunk = 0; chunk < opts->memmap_chunks; chunk++) |
78 { | 78 { |
79 if (address >= memmap[chunk].start && address < memmap[chunk].end) { | 79 if (address >= memmap[chunk].start && address < memmap[chunk].end) { |
80 if (!(memmap[chunk].flags & MMAP_READ)) { | 80 if (!(memmap[chunk].flags & (MMAP_READ|MMAP_READ_CODE))) { |
81 return NULL; | 81 return NULL; |
82 } | 82 } |
83 uint8_t * base = memmap[chunk].flags & MMAP_PTR_IDX | 83 uint8_t * base = memmap[chunk].flags & MMAP_PTR_IDX |
84 ? mem_pointers[memmap[chunk].ptr_index] | 84 ? mem_pointers[memmap[chunk].ptr_index] |
85 : memmap[chunk].buffer; | 85 : memmap[chunk].buffer; |