summaryrefslogtreecommitdiff
path: root/romdb.c
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2017-02-14 04:44:37 -0800
committerMichael Pavone <pavone@retrodev.com>2017-02-14 04:44:37 -0800
commit057b39372f70c4fcbb2484f994f7d62d16bb93f5 (patch)
tree79991ffe245f002f4a7d0b35898a6695227d4ddc /romdb.c
parentc86800048b731189152e787bcc3c6c13f6e07bfd (diff)
Fix handling of SRAM overlapping with ROM
Diffstat (limited to 'romdb.c')
-rw-r--r--romdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/romdb.c b/romdb.c
index d97cef7..38ab36e 100644
--- a/romdb.c
+++ b/romdb.c
@@ -561,7 +561,7 @@ void add_memmap_header(rom_info *info, uint8_t *rom, uint32_t size, memmap_chunk
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));