GB SIO: Don't auto-clock external shift clock
Jeffrey Pfau jeffrey@endrift.com
Thu, 22 Sep 2016 00:34:45 -0700
2 files changed,
4 insertions(+),
1 deletions(-)
M
CHANGES
→
CHANGES
@@ -10,6 +10,7 @@ - GB Video: Fix video frames getting missed when LCDC is off
- LR35902: Fix events running with the wrong cycle active - GB Video: Clear screen when LCDC is off - GBA Cheats: Fix key-activated CodeBreaker cheats + - GB SIO: Don't auto-clock external shift clock Misc: - All: Only update version info if needed - FFmpeg: Encoding cleanup
M
src/gb/sio.c
→
src/gb/sio.c
@@ -46,7 +46,9 @@
void GBSIOWriteSC(struct GBSIO* sio, uint8_t sc) { sio->period = 0x1000; // TODO Shift Clock if (GBRegisterSCIsEnable(sc)) { - sio->nextEvent = sio->p->cpu->cycles + sio->period; + if (GBRegisterSCIsShiftClock(sc)) { + sio->nextEvent = sio->p->cpu->cycles + sio->period; + } sio->remainingBits = 8; } }