From 47ea4936b3676ad6037e4542a9f2be69c1b0edd9 Mon Sep 17 00:00:00 2001 From: luigi2us Date: Tue, 7 Jul 2009 21:48:32 +0000 Subject: [PATCH] DSP LLE: Fix ASR as well. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3706 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/DSPCore/Src/DspIntArithmetic.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/DSPCore/Src/DspIntArithmetic.cpp b/Source/Core/DSPCore/Src/DspIntArithmetic.cpp index 92fc2db343..ecd220d7a3 100644 --- a/Source/Core/DSPCore/Src/DspIntArithmetic.cpp +++ b/Source/Core/DSPCore/Src/DspIntArithmetic.cpp @@ -640,7 +640,7 @@ void asl(const UDSPInstruction& opc) // value calculated by negating sign extended bits 0-6. void asr(const UDSPInstruction& opc) { - u16 shift = -opc.ushift; + u16 shift = (u16) -(((s8)(opc.ushift << 2)) >> 2); // arithmetic shift s64 acc = dsp_get_long_acc(opc.areg);