diff options
| author | Shawn Hoffman <godisgovernment@gmail.com> | 2010-02-17 05:50:22 +0000 |
|---|---|---|
| committer | Shawn Hoffman <godisgovernment@gmail.com> | 2010-02-17 05:50:22 +0000 |
| commit | b88f5109841b4db4c754c6cea14ba6b7174954de (patch) | |
| tree | 14f9ab30d1bb56b4d4262f63027a1d28227c14e3 /Source/Core/DSPCore/Src/DspIntLoadStore.cpp | |
| parent | 16b21f379065354c1898f04cd8ac5111c07f11d1 (diff) | |
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
Diffstat (limited to 'Source/Core/DSPCore/Src/DspIntLoadStore.cpp')
| -rw-r--r-- | Source/Core/DSPCore/Src/DspIntLoadStore.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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 |
