all repos — mgba @ 05edd2fe52a2f50ba3774c06175cd176fe328984

mGBA Game Boy Advance Emulator

GB SIO: Don't auto-clock external shift clock
Jeffrey Pfau jeffrey@endrift.com
Thu, 22 Sep 2016 00:34:45 -0700
commit

05edd2fe52a2f50ba3774c06175cd176fe328984

parent

78af66c9d5847a6281947143016b931c18b1a075

2 files changed, 4 insertions(+), 1 deletions(-)

jump to
M CHANGESCHANGES

@@ -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.csrc/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; } }