Fix initial DMA count

This commit is contained in:
Jeffrey Pfau 2014-01-23 20:55:11 -08:00
parent b4b7be1f84
commit 709269ee5c
1 changed files with 1 additions and 0 deletions

View File

@ -42,6 +42,7 @@ void GBAMemoryInit(struct GBAMemory* memory) {
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;