GBA Memory: Fix bad BIOS Load16 on big endian

This commit is contained in:
Jeffrey Pfau 2015-10-04 21:19:17 -07:00
parent ed0802b46f
commit 2ea44603a8
2 changed files with 2 additions and 1 deletions

View File

@ -16,6 +16,7 @@ Bugfixes:
- GBA Video: Fix objwin and blending interaction on sprites
- GBA Video: Fix OBJ semitransparency improperly interacting with other blending ops
- GBA: Fix autodetect problems with some bad dumps of Super Mario Advance 2
- GBA Memory: Fix bad BIOS Load16 on big endian
Misc:
- Qt: Window size command line options are now supported
- Qt: Increase usability of key mapper

View File

@ -442,7 +442,7 @@ uint32_t GBALoad16(struct ARMCore* cpu, uint32_t address, int* cycleCounter) {
LOAD_16(value, address, memory->bios);
} else {
GBALog(gba, GBA_LOG_GAME_ERROR, "Bad BIOS Load16: 0x%08X", address);
LOAD_16(value, address & 2, &memory->biosPrefetch);
value = (memory->biosPrefetch >> ((address & 2) * 8)) & 0xFFFF;
}
} else {
GBALog(gba, GBA_LOG_GAME_ERROR, "Bad memory Load16: 0x%08X", address);