Classic NES games jump to VRAM

This commit is contained in:
Jeffrey Pfau 2014-10-21 22:07:18 -07:00
parent 13e16d2e36
commit 501b6b621c
1 changed files with 4 additions and 0 deletions

View File

@ -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: