GB SIO: Don't auto-clock external shift clock

This commit is contained in:
Jeffrey Pfau 2016-09-22 00:34:45 -07:00
parent 7040b478b3
commit 0a2e4484e6
2 changed files with 4 additions and 1 deletions

View File

@ -10,6 +10,7 @@ Bugfixes:
- LR35902: Fix events running with the wrong cycle active - LR35902: Fix events running with the wrong cycle active
- GB Video: Clear screen when LCDC is off - GB Video: Clear screen when LCDC is off
- GBA Cheats: Fix key-activated CodeBreaker cheats - GBA Cheats: Fix key-activated CodeBreaker cheats
- GB SIO: Don't auto-clock external shift clock
Misc: Misc:
- All: Only update version info if needed - All: Only update version info if needed
- FFmpeg: Encoding cleanup - FFmpeg: Encoding cleanup

View File

@ -46,7 +46,9 @@ int32_t GBSIOProcessEvents(struct GBSIO* sio, int32_t cycles) {
void GBSIOWriteSC(struct GBSIO* sio, uint8_t sc) { void GBSIOWriteSC(struct GBSIO* sio, uint8_t sc) {
sio->period = 0x1000; // TODO Shift Clock sio->period = 0x1000; // TODO Shift Clock
if (GBRegisterSCIsEnable(sc)) { if (GBRegisterSCIsEnable(sc)) {
if (GBRegisterSCIsShiftClock(sc)) {
sio->nextEvent = sio->p->cpu->cycles + sio->period; sio->nextEvent = sio->p->cpu->cycles + sio->period;
}
sio->remainingBits = 8; sio->remainingBits = 8;
} }
} }