all repos — mgba @ c6f4f233321069a7e705cb78960d986110ae7f32

mGBA Game Boy Advance Emulator

GBA BIOS: Fix CpuSet on 0x01XXXXXX addresses
Jeffrey Pfau jeffrey@endrift.com
Fri, 06 Nov 2015 21:04:55 -0800
commit

c6f4f233321069a7e705cb78960d986110ae7f32

parent

4bd7a65432c97b8909833f72b6428cfacea65b41

2 files changed, 2 insertions(+), 1 deletions(-)

jump to
M CHANGESCHANGES

@@ -18,6 +18,7 @@ - Qt: Fix a crash in the memory viewer

- GBA BIOS: Fix misaligned CpuSet - Libretro: Fix problems with rumble not turning off - ARM7: Fix sign of unaligned LDRSH + - GBA BIOS: Fix CpuSet on 0x01XXXXXX addresses Misc: - Qt: Window size command line options are now supported - Qt: Increase usability of key mapper
M src/gba/bios.csrc/gba/bios.c

@@ -220,7 +220,7 @@ cpu->gprs[0] = atan2f(cpu->gprs[1] / 16384.f, cpu->gprs[0] / 16384.f) / (2 * M_PI) * 0x10000;

break; case 0xB: case 0xC: - if (cpu->gprs[0] >> BASE_OFFSET == REGION_BIOS) { + if (cpu->gprs[0] >> BASE_OFFSET < REGION_WORKING_RAM) { GBALog(gba, GBA_LOG_GAME_ERROR, "Cannot CpuSet from BIOS"); return; }