Mercurial > repos > blastem
comparison romdb.c @ 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 | b8ba086b96ed |
children | 2e6dcb5c11a2 |
comparison
equal
deleted
inserted
replaced
1220:1e7977460d18 | 1221:53fc7efdfdab |
---|---|
559 info->map[1].ptr_index = info->mapper_start_index = 0; | 559 info->map[1].ptr_index = info->mapper_start_index = 0; |
560 info->map[1].read_16 = (read_16_fun)read_sram_w;//these will only be called when mem_pointers[2] == NULL | 560 info->map[1].read_16 = (read_16_fun)read_sram_w;//these will only be called when mem_pointers[2] == NULL |
561 info->map[1].read_8 = (read_8_fun)read_sram_b; | 561 info->map[1].read_8 = (read_8_fun)read_sram_b; |
562 info->map[1].write_16 = (write_16_fun)write_sram_area_w;//these will be called all writes to the area | 562 info->map[1].write_16 = (write_16_fun)write_sram_area_w;//these will be called all writes to the area |
563 info->map[1].write_8 = (write_8_fun)write_sram_area_b; | 563 info->map[1].write_8 = (write_8_fun)write_sram_area_b; |
564 info->map[1].buffer = rom + 0x200000 / sizeof(uint16_t); | 564 info->map[1].buffer = rom + 0x200000; |
565 | 565 |
566 memmap_chunk *last = info->map + info->map_chunks - 1; | 566 memmap_chunk *last = info->map + info->map_chunks - 1; |
567 memset(last, 0, sizeof(memmap_chunk)); | 567 memset(last, 0, sizeof(memmap_chunk)); |
568 last->start = 0xA13000; | 568 last->start = 0xA13000; |
569 last->end = 0xA13100; | 569 last->end = 0xA13100; |