GBA Memory: Fix 16-bit bad loads
Jeffrey Pfau jeffrey@endrift.com
Sat, 18 Apr 2015 01:26:12 -0700
1 files changed,
2 insertions(+),
2 deletions(-)
jump to
M
src/gba/memory.c
→
src/gba/memory.c
@@ -430,7 +430,7 @@ } else {
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 @@ default:
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; }