DSP LLE: Fix ASR as well.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3706 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
luigi2us 2009-07-07 21:48:32 +00:00
parent 6c7aadd5ab
commit 47ea4936b3

View file

@ -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);