From 664c984a9d5c16012ffc5bc5d7e7f18980a27d41 Mon Sep 17 00:00:00 2001 From: Sour Date: Mon, 25 Mar 2019 18:29:37 -0400 Subject: [PATCH] HDMA: Decrement flag is ignored for HDMA transfers --- Core/DmaController.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Core/DmaController.cpp b/Core/DmaController.cpp index 1982b69..d8233a6 100644 --- a/Core/DmaController.cpp +++ b/Core/DmaController.cpp @@ -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);