GBA I/O: Set JOYSTAT TRANS flag when writing JOY_TRANS registers
Jeffrey Pfau jeffrey@endrift.com
Tue, 27 Dec 2016 03:48:41 -0800
2 files changed,
5 insertions(+),
2 deletions(-)
M
CHANGES
→
CHANGES
@@ -71,6 +71,7 @@ - GBA DMA: Refactor DMA out of memory.c
- GBA DMA: Move DMAs to using absolute timing - All: Add C++ header guards - GBA I/O: Clear JOYSTAT RECV flag when reading JOY_RECV registers + - GBA I/O: Set JOYSTAT TRANS flag when writing JOY_TRANS registers 0.5.1: (2016-10-05) Bugfixes:
M
src/gba/io.c
→
src/gba/io.c
@@ -524,13 +524,15 @@ case REG_RCNT:
value &= 0xC1FF; GBASIOWriteRCNT(&gba->sio, value); break; + case REG_JOY_TRANS_LO: + case REG_JOY_TRANS_HI: + gba->memory.io[REG_JOYSTAT >> 1] |= JOYSTAT_TRANS_BIT; + // Fall through case REG_SIOMLT_SEND: case REG_JOYCNT: case REG_JOYSTAT: case REG_JOY_RECV_LO: case REG_JOY_RECV_HI: - case REG_JOY_TRANS_LO: - case REG_JOY_TRANS_HI: value = GBASIOWriteRegister(&gba->sio, address, value); break;