8-bit I/O reads

This commit is contained in:
Jeffrey Pfau 2013-04-18 01:19:57 -07:00
parent 97b669e4d1
commit 422961a2df
1 changed files with 1 additions and 1 deletions

View File

@ -251,7 +251,7 @@ uint8_t GBALoadU8(struct ARMMemory* memory, uint32_t address) {
return ((uint8_t*) gbaMemory->iwram)[address & (SIZE_WORKING_IRAM - 1)];
break;
case BASE_IO:
break;
return (GBAIORead(gbaMemory->p, address & 0xFFFE) >> ((address & 0x0001) << 3)) & 0xFF;
case BASE_PALETTE_RAM:
break;
case BASE_VRAM: