mirror of https://github.com/mgba-emu/mgba.git
GBA I/O: Clear JOYSTAT RECV flag when reading JOY_RECV registers
This commit is contained in:
parent
463ce99739
commit
75d9085eef
1
CHANGES
1
CHANGES
|
@ -70,6 +70,7 @@ Misc:
|
||||||
- GBA DMA: Refactor DMA out of memory.c
|
- GBA DMA: Refactor DMA out of memory.c
|
||||||
- GBA DMA: Move DMAs to using absolute timing
|
- GBA DMA: Move DMAs to using absolute timing
|
||||||
- All: Add C++ header guards
|
- All: Add C++ header guards
|
||||||
|
- GBA I/O: Clear JOYSTAT RECV flag when reading JOY_RECV registers
|
||||||
|
|
||||||
0.5.1: (2016-10-05)
|
0.5.1: (2016-10-05)
|
||||||
Bugfixes:
|
Bugfixes:
|
||||||
|
|
|
@ -806,6 +806,11 @@ uint16_t GBAIORead(struct GBA* gba, uint32_t address) {
|
||||||
mLOG(GBA_IO, GAME_ERROR, "Read from write-only I/O register: %03X", address);
|
mLOG(GBA_IO, GAME_ERROR, "Read from write-only I/O register: %03X", address);
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
case REG_JOY_RECV_LO:
|
||||||
|
case REG_JOY_RECV_HI:
|
||||||
|
gba->memory.io[REG_JOYSTAT >> 1] &= ~JOYSTAT_RECV_BIT;
|
||||||
|
break;
|
||||||
|
|
||||||
case REG_SOUNDBIAS:
|
case REG_SOUNDBIAS:
|
||||||
case REG_KEYCNT:
|
case REG_KEYCNT:
|
||||||
case REG_POSTFLG:
|
case REG_POSTFLG:
|
||||||
|
@ -862,8 +867,6 @@ uint16_t GBAIORead(struct GBA* gba, uint32_t address) {
|
||||||
case REG_SIOMULTI3:
|
case REG_SIOMULTI3:
|
||||||
case REG_SIOMLT_SEND:
|
case REG_SIOMLT_SEND:
|
||||||
case REG_JOYCNT:
|
case REG_JOYCNT:
|
||||||
case REG_JOY_RECV_LO:
|
|
||||||
case REG_JOY_RECV_HI:
|
|
||||||
case REG_JOY_TRANS_LO:
|
case REG_JOY_TRANS_LO:
|
||||||
case REG_JOY_TRANS_HI:
|
case REG_JOY_TRANS_HI:
|
||||||
case REG_JOYSTAT:
|
case REG_JOYSTAT:
|
||||||
|
|
Loading…
Reference in New Issue