all repos — mgba @ 501b6b621c6c27cbb5523f53172e00c426a8b445

mGBA Game Boy Advance Emulator

Classic NES games jump to VRAM
Jeffrey Pfau jeffrey@endrift.com
Tue, 21 Oct 2014 22:07:18 -0700
commit

501b6b621c6c27cbb5523f53172e00c426a8b445

parent

13e16d2e36e6734c20deacaa15614c0530e57739

1 files changed, 4 insertions(+), 0 deletions(-)

jump to
M src/gba/gba-memory.csrc/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: