Classic NES games jump to VRAM
Jeffrey Pfau jeffrey@endrift.com
Tue, 21 Oct 2014 22:07:18 -0700
1 files changed,
4 insertions(+),
0 deletions(-)
jump to
M
src/gba/gba-memory.c
→
src/gba/gba-memory.c
@@ -136,6 +136,10 @@ case BASE_WORKING_IRAM:
cpu->memory.activeRegion = memory->iwram; cpu->memory.activeMask = SIZE_WORKING_IRAM - 1; break; + case BASE_VRAM: + cpu->memory.activeRegion = (uint32_t*) gba->video.renderer->vram; + cpu->memory.activeMask = 0x0000FFFF; + break; case BASE_CART0: case BASE_CART0_EX: case BASE_CART1: