From b88f5109841b4db4c754c6cea14ba6b7174954de Mon Sep 17 00:00:00 2001 From: Shawn Hoffman Date: Wed, 17 Feb 2010 05:50:22 +0000 Subject: [PATCH] dsp: lrs is also sign extended in "40bit" mode. tested (correctly, this time :D ) git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5071 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/DSPCore/Src/DspIntLoadStore.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/Core/DSPCore/Src/DspIntLoadStore.cpp b/Source/Core/DSPCore/Src/DspIntLoadStore.cpp index ade6e6752b..684222a3d9 100644 --- a/Source/Core/DSPCore/Src/DspIntLoadStore.cpp +++ b/Source/Core/DSPCore/Src/DspIntLoadStore.cpp @@ -47,6 +47,7 @@ void lrs(const UDSPInstruction& opc) u8 reg = ((opc.hex >> 8) & 0x7) + 0x18; u16 addr = (g_dsp.r[DSP_REG_CR] << 8) | (opc.hex & 0xFF); g_dsp.r[reg] = dsp_dmem_read(addr); + dsp_conditional_extend_accum(reg); } // LR $D, @M