all repos — mgba @ 66db559f5b4c10957180687f4c4f1502bf30707d

mGBA Game Boy Advance Emulator

DS Memory: Fix copy-paste error
Jeffrey Pfau jeffrey@endrift.com
Tue, 03 Jan 2017 15:31:09 -0800
commit

66db559f5b4c10957180687f4c4f1502bf30707d

parent

0053f85922a69fade4c543e53d8ef6e90c6e0a6b

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

jump to
M src/ds/memory.csrc/ds/memory.c

@@ -889,7 +889,7 @@ });

break; case DS_REGION_RAM: STM_LOOP(if ((address & ~(DS9_SIZE_DTCM - 1)) == DS9_BASE_DTCM) { - LOAD_32(value, address & (DS9_SIZE_DTCM - 1), memory->dtcm); + STORE_32(value, address & (DS9_SIZE_DTCM - 1), memory->dtcm); } else if ((address & (DS_SIZE_RAM - 1)) < DS_SIZE_RAM) { STORE_32(value, address & (DS_SIZE_RAM - 1), memory->ram); } else {