mirror of https://github.com/mgba-emu/mgba.git
GBA DMA: ROM reads are forced to increment
This commit is contained in:
parent
46806f1924
commit
95f44799b2
1
CHANGES
1
CHANGES
|
@ -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:
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue