all repos — mgba @ c42c08c5e1c2d2642637565cce4eba5742513bac

mGBA Game Boy Advance Emulator

GBA Memory: Fix 16-bit bad loads
Jeffrey Pfau jeffrey@endrift.com
Sat, 18 Apr 2015 01:26:12 -0700
commit

c42c08c5e1c2d2642637565cce4eba5742513bac

parent

0c8a0cd0e459130a50660345e28897908c9b48ab

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

jump to
M src/gba/memory.csrc/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; }