GBA DMA: ROM reads are forced to increment

This commit is contained in:
Vicki Pfau 2017-10-13 00:31:15 -07:00
parent 46806f1924
commit 95f44799b2
2 changed files with 4 additions and 0 deletions

View File

@ -1,6 +1,7 @@
0.6.2: (Future)
Bugfixes:
- GBA Video: Force align 256-color tiles
- GBA DMA: ROM reads are forced to increment
0.6.1: (2017-10-01)
Bugfixes:

View File

@ -81,6 +81,9 @@ uint16_t GBADMAWriteCNT_HI(struct GBA* gba, int dma, uint16_t control) {
if (!wasEnabled && GBADMARegisterIsEnable(currentDma->reg)) {
currentDma->nextSource = currentDma->source;
if (currentDma->nextSource >= BASE_CART0 && currentDma->nextSource < BASE_CART_SRAM && GBADMARegisterGetSrcControl(currentDma->reg) < 3) {
currentDma->reg = GBADMARegisterClearSrcControl(currentDma->reg);
}
currentDma->nextDest = currentDma->dest;
GBADMASchedule(gba, dma, currentDma);
}