Read back I/O memory when reading 32-bit
Jeffrey Pfau jeffrey@endrift.com
Thu, 18 Apr 2013 00:58:42 -0700
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
src/gba/gba-memory.c
→
src/gba/gba-memory.c
@@ -113,7 +113,7 @@ return gbaMemory->wram[(address & (SIZE_WORKING_RAM - 1)) >> 2];
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: