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
- 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

View File

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