all repos — mgba @ 7c8d253123733d667e271668f00bacceb390175d

mGBA Game Boy Advance Emulator

GB: SGB bug compat
Vicki Pfau vi@endrift.com
Fri, 06 Sep 2019 21:24:51 -0700
commit

7c8d253123733d667e271668f00bacceb390175d

parent

77a89e52c9eab9c44b34e337a51930bb7d43ca49

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

jump to
M src/gb/video.csrc/gb/video.c

@@ -701,6 +701,9 @@ case SGB_ATTR_TRN:

case SGB_ATTR_SET: break; case SGB_MLT_REQ: + if ((video->sgbPacketBuffer[1] & 0x3) == 2) { // XXX: This unmasked increment appears to be an SGB hardware bug + ++video->p->sgbCurrentController; + } video->p->sgbControllers = video->sgbPacketBuffer[1] & 0x3; video->p->sgbCurrentController &= video->p->sgbControllers; return;