diff --git a/src/gba/memory.c b/src/gba/memory.c index d68bdd121..65750b472 100644 --- a/src/gba/memory.c +++ b/src/gba/memory.c @@ -430,7 +430,7 @@ uint32_t GBALoad16(struct ARMCore* cpu, uint32_t address, int* cycleCounter) { GBALog(gba, GBA_LOG_GAME_ERROR, "Bad memory Load16: 0x%08X", address); LOAD_BAD; uint32_t v2 = value; - LOAD_16(v2, address & 2, &value); + LOAD_16(value, address & 2, &v2); } break; case REGION_WORKING_RAM: @@ -490,7 +490,7 @@ uint32_t GBALoad16(struct ARMCore* cpu, uint32_t address, int* cycleCounter) { GBALog(gba, GBA_LOG_GAME_ERROR, "Bad memory Load16: 0x%08X", address); LOAD_BAD; uint32_t v2 = value; - LOAD_16(v2, address & 2, &value); + LOAD_16(value, address & 2, &v2); break; }