all repos — mgba @ 3a134fcda68c4fbe702088640fd8c023567e8679

mGBA Game Boy Advance Emulator

GBA: Allow jumping to OAM and palette RAM
Jeffrey Pfau jeffrey@endrift.com
Sat, 23 Jan 2016 19:52:03 -0800
commit

3a134fcda68c4fbe702088640fd8c023567e8679

parent

6fe43d1d4cfc7c15046e8a7df3354df272e97f4d

2 files changed, 9 insertions(+), 0 deletions(-)

jump to
M CHANGESCHANGES

@@ -64,6 +64,7 @@ - GBA Input: Consolidate GBA_KEY_NONE and GBA_NO_MAPPING

- Debugger: Convert breakpoints and watchpoints from linked-lists to vectors - Qt: Added button for breaking into the GDB debugger - GBA BIOS: Finish implementing RegisterRamReset + - GBA: Allow jumping to OAM and palette RAM 0.3.2: (2015-12-16) Bugfixes:
M src/gba/memory.csrc/gba/memory.c

@@ -263,9 +263,17 @@ case REGION_WORKING_IRAM:

cpu->memory.activeRegion = memory->iwram; cpu->memory.activeMask = SIZE_WORKING_IRAM - 1; break; + case REGION_PALETTE_RAM: + cpu->memory.activeRegion = (uint32_t*) gba->video.palette; + cpu->memory.activeMask = SIZE_PALETTE_RAM - 1; + break; case REGION_VRAM: cpu->memory.activeRegion = (uint32_t*) gba->video.renderer->vram; cpu->memory.activeMask = 0x0000FFFF; + break; + case REGION_OAM: + cpu->memory.activeRegion = (uint32_t*) gba->video.oam.raw; + cpu->memory.activeMask = SIZE_OAM - 1; break; case REGION_CART0: case REGION_CART0_EX: