mirror of https://github.com/mgba-emu/mgba.git
GBA SIO: Fix deseralizing SIO registers
This commit is contained in:
parent
7652fe9f7a
commit
66cc5b1451
1
CHANGES
1
CHANGES
|
@ -24,6 +24,7 @@ Emulation fixes:
|
|||
- 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)
|
||||
|
|
|
@ -980,6 +980,8 @@ void GBAIODeserialize(struct GBA* gba, const struct GBASerializedState* state) {
|
|||
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);
|
||||
|
|
Loading…
Reference in New Issue