mirror of https://github.com/mgba-emu/mgba.git
Read back I/O memory when reading 32-bit
This commit is contained in:
parent
1e1c8fd2dd
commit
b5cbd55718
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue