Mercurial > repos > blastem
diff backend.c @ 1519:1f745318f10a
Made the NOR flash emulation a bit more flexible, but not yet flexible enough to properly support the flash chip in the MegaWiFi cart
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Wed, 31 Jan 2018 22:05:10 -0800 |
parents | 92e7dafcc0dc |
children | b7ecd0d6a77b d377d6037dd9 |
line wrap: on
line diff
--- a/backend.c Wed Jan 31 21:59:08 2018 -0800 +++ b/backend.c Wed Jan 31 22:05:10 2018 -0800 @@ -75,7 +75,7 @@ for (uint32_t chunk = 0; chunk < opts->memmap_chunks; chunk++) { if (address >= memmap[chunk].start && address < memmap[chunk].end) { - if (!(memmap[chunk].flags & MMAP_READ)) { + if (!(memmap[chunk].flags & (MMAP_READ|MMAP_READ_CODE))) { return NULL; } uint8_t * base = memmap[chunk].flags & MMAP_PTR_IDX