all repos — mgba @ cf88e47a8a795922e42eb641d7ac02f56e4d2b40

mGBA Game Boy Advance Emulator

GBA Memory: Fix initial DMA state
Jeffrey Pfau jeffrey@endrift.com
Wed, 14 Jan 2015 00:28:49 -0800
commit

cf88e47a8a795922e42eb641d7ac02f56e4d2b40

parent

854d49d1b727779133f6ea7124263cad74e98bcf

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

jump to
M CHANGESCHANGES

@@ -54,6 +54,7 @@ - GBA BIOS: Fix LZ77UnCompVram to use 16-bit loads from decompressed memory

- GBA BIOS: Fix HuffUnComp to work when games pass an invalid bit length - GBA BIOS: Fix GetBiosChecksum to return the value of a real GBA, regardless of used BIOS - GBA Memory: Properly bounds-check VRAM accesses + - GBA Memory: Fix initial DMA state Misc: - Qt: Disable sync to video by default - GBA: Exit cleanly on FATAL if the port supports it
M src/gba/gba-memory.csrc/gba/gba-memory.c

@@ -100,9 +100,10 @@ memset(gba->memory.io, 0, sizeof(gba->memory.io));

memset(gba->memory.dma, 0, sizeof(gba->memory.dma)); int i; for (i = 0; i < 4; ++i) { - gba->memory.dma[i].count = 0x10000; + gba->memory.dma[i].count = 0x4000; gba->memory.dma[i].nextEvent = INT_MAX; } + gba->memory.dma[3].count = 0x10000; gba->memory.activeDMA = -1; gba->memory.nextDMA = INT_MAX; gba->memory.eventDiff = 0;