all repos — mgba @ c0ac4b669e6aebf18b4f0bffd521e04a7a626f2c

mGBA Game Boy Advance Emulator

DS I/O: Fix VRAMCNT_G value
Vicki Pfau vi@endrift.com
Sat, 25 Feb 2017 01:00:52 -0800
commit

c0ac4b669e6aebf18b4f0bffd521e04a7a626f2c

parent

6d2b0aa78708f2f70c0d924d9be7f4903a0aa16a

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

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

@@ -437,7 +437,7 @@ DSVideoConfigureVRAM(ds, address - DS9_REG_VRAMCNT_A + 1, value >> 8, oldValue >> 8);

break; case DS9_REG_VRAMCNT_G: oldValue = ds->memory.io9[address >> 1]; - value &= 0x9F03; + value &= 0x039F; DSVideoConfigureVRAM(ds, 6, value & 0xFF, oldValue & 0xFF); DSConfigureWRAM(&ds->memory, value >> 8); break;