all repos — mgba @ 709269ee5c2791ee37a41cb02ced2606002eb31e

mGBA Game Boy Advance Emulator

Fix initial DMA count
Jeffrey Pfau jeffrey@endrift.com
Thu, 23 Jan 2014 20:55:11 -0800
commit

709269ee5c2791ee37a41cb02ced2606002eb31e

parent

b4b7be1f8417d13fc59f5967137b8aa5a6991490

1 files changed, 1 insertions(+), 0 deletions(-)

jump to
M src/gba/gba-memory.csrc/gba/gba-memory.c

@@ -42,6 +42,7 @@ memset(memory->io, 0, sizeof(memory->io));

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