all repos — mgba @ b5cbd557189b7fe046afba606e9f2a93ec41081d

mGBA Game Boy Advance Emulator

Read back I/O memory when reading 32-bit
Jeffrey Pfau jeffrey@endrift.com
Thu, 18 Apr 2013 00:58:42 -0700
commit

b5cbd557189b7fe046afba606e9f2a93ec41081d

parent

1e1c8fd2ddc42a2cb55b1e34c0660cf7d0168d18

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

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