From b5cbd557189b7fe046afba606e9f2a93ec41081d Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Thu, 18 Apr 2013 00:58:42 -0700 Subject: [PATCH] Read back I/O memory when reading 32-bit --- src/gba/gba-memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gba/gba-memory.c b/src/gba/gba-memory.c index ff79ef366..1960149cd 100644 --- a/src/gba/gba-memory.c +++ b/src/gba/gba-memory.c @@ -113,7 +113,7 @@ int32_t GBALoad32(struct ARMMemory* memory, uint32_t address) { case BASE_WORKING_IRAM: return gbaMemory->iwram[(address & (SIZE_WORKING_IRAM - 1)) >> 2]; case BASE_IO: - break; + return GBAIORead(gbaMemory->p, address & (SIZE_IO - 1)) | (GBAIORead(gbaMemory->p, (address & (SIZE_IO - 1)) | 2) << 16); case BASE_PALETTE_RAM: break; case BASE_VRAM: