Permalink
Browse files

Classic NES games jump to VRAM

  • Loading branch information...
endrift committed Oct 22, 2014
1 parent 13e16d2 commit 501b6b621c6c27cbb5523f53172e00c426a8b445
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/gba/gba-memory.c
View
@@ -136,6 +136,10 @@ static void GBASetActiveRegion(struct ARMCore* cpu, uint32_t address) {
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:

0 comments on commit 501b6b6

Please sign in to comment.