all repos — mgba @ 6ed3c18afd1d540a6f2bb9e23079066b0093d55e

mGBA Game Boy Advance Emulator

Support IWRAM in LZ77
Jeffrey Pfau jeffrey@endrift.com
Wed, 01 May 2013 00:24:28 -0700
commit

6ed3c18afd1d540a6f2bb9e23079066b0093d55e

parent

5f6cf337a08f18705e6cf1fb8c50487fd5e90817

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

jump to
M src/gba/gba-bios.csrc/gba/gba-bios.c

@@ -134,6 +134,9 @@ switch (gba->cpu.gprs[1] >> BASE_OFFSET) {

case REGION_WORKING_RAM: _unLz77(&gba->memory, gba->cpu.gprs[0], &((uint8_t*) gba->memory.wram)[(gba->cpu.gprs[1] & (SIZE_WORKING_RAM - 1))]); break; + case REGION_WORKING_IRAM: + _unLz77(&gba->memory, gba->cpu.gprs[0], &((uint8_t*) gba->memory.iwram)[(gba->cpu.gprs[1] & (SIZE_WORKING_IRAM - 1))]); + break; case REGION_VRAM: _unLz77(&gba->memory, gba->cpu.gprs[0], &((uint8_t*) gba->video.vram)[(gba->cpu.gprs[1] & 0x0001FFFF)]); break;