GB: SGB bug compat
Vicki Pfau vi@endrift.com
Fri, 06 Sep 2019 21:24:51 -0700
1 files changed,
3 insertions(+),
0 deletions(-)
jump to
M
src/gb/video.c
→
src/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;