Remove loop in DMA to find a value we already know

This commit is contained in:
Jeffrey Pfau 2014-10-19 23:30:10 -07:00
parent d44bf73a81
commit e7bd5f9ade
1 changed files with 2 additions and 5 deletions

View File

@ -852,11 +852,8 @@ void GBAMemoryServiceDMA(struct GBA* gba, int number, struct GBADMA* info) {
}
info->nextSource = source;
int i;
for (i = 0; i < 4; ++i) {
if (memory->dma[i].nextEvent != INT_MAX) {
memory->dma[i].nextEvent += cycles;
}
if (info->nextEvent != INT_MAX) {
info->nextEvent += cycles;
}
cpu->cycles += cycles;
}