all repos — mgba @ 422961a2df929f5fff7b4fabf82671f92e2b91c8

mGBA Game Boy Advance Emulator

8-bit I/O reads
Jeffrey Pfau jeffrey@endrift.com
Thu, 18 Apr 2013 01:19:57 -0700
commit

422961a2df929f5fff7b4fabf82671f92e2b91c8

parent

97b669e4d16f610ec8f6b6058b99ea6740a39668

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

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