HDMA: Decrement flag is ignored for HDMA transfers

This commit is contained in:
Sour 2019-03-25 18:29:37 -04:00
parent 574cad9a0b
commit 664c984a9d

View file

@ -140,7 +140,7 @@ void DmaController::RunHdmaTransfer(DmaChannelConfig &channel)
0x2100 | channel.DestAddress + transferOffsets[i],
channel.InvertDirection
);
channel.TransferSize += (channel.Decrement ? -1 : 1);
channel.TransferSize++;
transferByteCount--;
i++;
} while(transferByteCount > 0);
@ -151,7 +151,7 @@ void DmaController::RunHdmaTransfer(DmaChannelConfig &channel)
0x2100 | channel.DestAddress + transferOffsets[i],
channel.InvertDirection
);
channel.HdmaTableAddress += (channel.Decrement ? -1 : 1);
channel.HdmaTableAddress++;
transferByteCount--;
i++;
} while(transferByteCount > 0);