8-bit I/O reads
Jeffrey Pfau jeffrey@endrift.com
Thu, 18 Apr 2013 01:19:57 -0700
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
src/gba/gba-memory.c
→
src/gba/gba-memory.c
@@ -251,7 +251,7 @@ case BASE_WORKING_IRAM:
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: