all repos — mgba @ 9d4ffb3e4337bcdb042666fa169662a6bc3ec4e1

mGBA Game Boy Advance Emulator

GB IO: Read back current bank when switching banks
Jeffrey Pfau jeffrey@endrift.com
Fri, 19 Feb 2016 22:06:52 -0800
commit

9d4ffb3e4337bcdb042666fa169662a6bc3ec4e1

parent

6a05ecf273e25fa31564226cea819f2aedc54dc4

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

jump to
M src/gb/io.csrc/gb/io.c

@@ -346,6 +346,7 @@ GBVideoWritePalette(&gb->video, address, value);

break; case REG_SVBK: GBMemorySwitchWramBank(&gb->memory, value); + value = gb->memory.wramCurrentBank; break; default: goto failed;