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