mirror of https://github.com/mgba-emu/mgba.git
GB SIO: Don't auto-clock external shift clock
This commit is contained in:
parent
7040b478b3
commit
0a2e4484e6
1
CHANGES
1
CHANGES
|
@ -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
|
||||||
|
|
|
@ -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)) {
|
||||||
sio->nextEvent = sio->p->cpu->cycles + sio->period;
|
if (GBRegisterSCIsShiftClock(sc)) {
|
||||||
|
sio->nextEvent = sio->p->cpu->cycles + sio->period;
|
||||||
|
}
|
||||||
sio->remainingBits = 8;
|
sio->remainingBits = 8;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue