all repos — mgba @ 9cbbd9f255fda8a27a025a1f244d4e22028f199f

mGBA Game Boy Advance Emulator

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
commit

9cbbd9f255fda8a27a025a1f244d4e22028f199f

parent

75d9085eefa51c7d5a6a5436e4692e6daf0cc4e4

2 files changed, 5 insertions(+), 2 deletions(-)

jump to
M CHANGESCHANGES

@@ -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.csrc/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;