Mercurial > repos > blastem
changeset 1221:53fc7efdfdab
Fix handling of SRAM overlapping with ROM
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Tue, 14 Feb 2017 04:44:37 -0800 |
parents | 1e7977460d18 |
children | 60d73f42a606 |
files | romdb.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/romdb.c Tue Feb 14 04:15:49 2017 -0800 +++ b/romdb.c Tue Feb 14 04:44:37 2017 -0800 @@ -561,7 +561,7 @@ info->map[1].read_8 = (read_8_fun)read_sram_b; info->map[1].write_16 = (write_16_fun)write_sram_area_w;//these will be called all writes to the area info->map[1].write_8 = (write_8_fun)write_sram_area_b; - info->map[1].buffer = rom + 0x200000 / sizeof(uint16_t); + info->map[1].buffer = rom + 0x200000; memmap_chunk *last = info->map + info->map_chunks - 1; memset(last, 0, sizeof(memmap_chunk));