From 0d7d6997101f60ffdf01a49477b66ab1d7b6ddad Mon Sep 17 00:00:00 2001 From: Marko Pusljar Date: Wed, 4 Nov 2009 14:10:56 +0000 Subject: [PATCH] DSPLLE - small fix for previous commit git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4497 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/DSPCore/Src/DSPInterpreter.h | 1 - Source/Core/DSPCore/Src/DspIntArithmetic.cpp | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Source/Core/DSPCore/Src/DSPInterpreter.h b/Source/Core/DSPCore/Src/DSPInterpreter.h index 692041ab85..776208db71 100644 --- a/Source/Core/DSPCore/Src/DSPInterpreter.h +++ b/Source/Core/DSPCore/Src/DSPInterpreter.h @@ -122,7 +122,6 @@ void asl(const UDSPInstruction& opc); void asr(const UDSPInstruction& opc); void lsrn(const UDSPInstruction& opc); void asrn(const UDSPInstruction& opc); -void lsrnr(const UDSPInstruction& opc); void dar(const UDSPInstruction& opc); void iar(const UDSPInstruction& opc); void sbclr(const UDSPInstruction& opc); diff --git a/Source/Core/DSPCore/Src/DspIntArithmetic.cpp b/Source/Core/DSPCore/Src/DspIntArithmetic.cpp index c22ddae22f..c7b630cf5c 100644 --- a/Source/Core/DSPCore/Src/DspIntArithmetic.cpp +++ b/Source/Core/DSPCore/Src/DspIntArithmetic.cpp @@ -785,7 +785,7 @@ void lsrnrx(const UDSPInstruction& opc) u8 sreg = (opc.hex >> 9) & 0x1; //axhS u64 acc = dsp_get_long_acc(dreg); s16 shift = g_dsp.r[DSP_REG_AXH0 + sreg]; - acc & 0x000000FFFFFFFFFFULL; + acc &= 0x000000FFFFFFFFFFULL; if (shift > 0) { acc <<= shift; } else if (shift < 0) {