GBA SIO: Fix writing to RCNT
Jeffrey Pfau jeffrey@endrift.com
Sat, 28 Feb 2015 14:52:46 -0800
1 files changed,
2 insertions(+),
1 deletions(-)
jump to
M
src/gba/sio.c
→
src/gba/sio.c
@@ -122,7 +122,8 @@ *driverLoc = driver;
} void GBASIOWriteRCNT(struct GBASIO* sio, uint16_t value) { - sio->rcnt = value; + sio->rcnt &= 0xF; + sio->rcnt |= value & ~0xF; _switchMode(sio); if (sio->activeDriver && sio->activeDriver->writeRegister) { sio->activeDriver->writeRegister(sio->activeDriver, REG_RCNT, value);