Read back I/O memory when reading 32-bit

This commit is contained in:
Jeffrey Pfau 2013-04-18 00:58:42 -07:00
parent 1e1c8fd2dd
commit b5cbd55718
1 changed files with 1 additions and 1 deletions

View File

@ -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: