HDMA: Decrement flag is ignored for HDMA transfers
This commit is contained in:
parent
574cad9a0b
commit
664c984a9d
1 changed files with 2 additions and 2 deletions
|
@ -140,7 +140,7 @@ void DmaController::RunHdmaTransfer(DmaChannelConfig &channel)
|
||||||
0x2100 | channel.DestAddress + transferOffsets[i],
|
0x2100 | channel.DestAddress + transferOffsets[i],
|
||||||
channel.InvertDirection
|
channel.InvertDirection
|
||||||
);
|
);
|
||||||
channel.TransferSize += (channel.Decrement ? -1 : 1);
|
channel.TransferSize++;
|
||||||
transferByteCount--;
|
transferByteCount--;
|
||||||
i++;
|
i++;
|
||||||
} while(transferByteCount > 0);
|
} while(transferByteCount > 0);
|
||||||
|
@ -151,7 +151,7 @@ void DmaController::RunHdmaTransfer(DmaChannelConfig &channel)
|
||||||
0x2100 | channel.DestAddress + transferOffsets[i],
|
0x2100 | channel.DestAddress + transferOffsets[i],
|
||||||
channel.InvertDirection
|
channel.InvertDirection
|
||||||
);
|
);
|
||||||
channel.HdmaTableAddress += (channel.Decrement ? -1 : 1);
|
channel.HdmaTableAddress++;
|
||||||
transferByteCount--;
|
transferByteCount--;
|
||||||
i++;
|
i++;
|
||||||
} while(transferByteCount > 0);
|
} while(transferByteCount > 0);
|
||||||
|
|
Loading…
Add table
Reference in a new issue