all repos — mgba @ 66cc5b145145a3f381340d1f0fe51398fe1327e3

mGBA Game Boy Advance Emulator

GBA SIO: Fix deseralizing SIO registers
Vicki Pfau vi@endrift.com
Mon, 10 Aug 2020 19:10:34 -0700
commit

66cc5b145145a3f381340d1f0fe51398fe1327e3

parent

7652fe9f7ae13b4e3d5b29e0ebf869d7503b22cc

2 files changed, 3 insertions(+), 0 deletions(-)

jump to
M CHANGESCHANGES

@@ -24,6 +24,7 @@ - GBA Memory: Improve gamepak prefetch timing

- GBA Memory: Stall on VRAM access in mode 2 (fixes mgba.io/i/190) - GBA SIO: Fix copying Normal mode transfer values - GBA SIO: Fix Normal mode being totally broken (fixes mgba.io/i/1800) + - GBA SIO: Fix deseralizing SIO registers - GBA Video: Latch scanline at end of Hblank (fixes mgba.io/i/1319) - GBA Video: Fix Hblank timing - GBA Video: Invalidate map cache when modifying BGCNT (fixes mgba.io/i/1846)
M src/gba/io.csrc/gba/io.c

@@ -980,6 +980,8 @@ LOAD_32(gba->memory.dma[i].nextCount, 0, &state->dma[i].nextCount);

LOAD_32(gba->memory.dma[i].when, 0, &state->dma[i].when); } GBAAudioWriteSOUNDCNT_X(&gba->audio, gba->memory.io[REG_SOUNDCNT_X >> 1]); + gba->sio.siocnt = gba->memory.io[REG_SIOCNT >> 1]; + GBASIOWriteRCNT(&gba->sio, gba->memory.io[REG_RCNT >> 1]); LOAD_32(gba->memory.dmaTransferRegister, 0, &state->dmaTransferRegister); LOAD_32(gba->dmaPC, 0, &state->dmaBlockPC);