From 12557c4a7ec6baaede551c78c1f71c7536323bdf Mon Sep 17 00:00:00 2001 From: nakeee Date: Sun, 5 Apr 2009 21:30:08 +0000 Subject: [PATCH] DSP: loop should jump the right instruction size git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2890 8ced0084-cf51-0410-be5f-012b33b47a6e --- .../Plugins/Plugin_DSP_LLE-testing/Src/DSPInterpreter.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/Plugins/Plugin_DSP_LLE-testing/Src/DSPInterpreter.cpp b/Source/Plugins/Plugin_DSP_LLE-testing/Src/DSPInterpreter.cpp index 270e34c74c..646a4a7e37 100644 --- a/Source/Plugins/Plugin_DSP_LLE-testing/Src/DSPInterpreter.cpp +++ b/Source/Plugins/Plugin_DSP_LLE-testing/Src/DSPInterpreter.cpp @@ -145,7 +145,7 @@ void loop(const UDSPInstruction& opc) g_dsp.pc = loop_pc; } - g_dsp.pc = loop_pc + 1; + g_dsp.pc = loop_pc + opSize[dsp_peek_code()]; } void loopi(const UDSPInstruction& opc) @@ -159,7 +159,7 @@ void loopi(const UDSPInstruction& opc) g_dsp.pc = loop_pc; } - g_dsp.pc = loop_pc + 1; + g_dsp.pc = loop_pc + opSize[dsp_peek_code()]; } void bloop(const UDSPInstruction& opc) @@ -176,7 +176,7 @@ void bloop(const UDSPInstruction& opc) } else { - g_dsp.pc = loop_pc + 1; + g_dsp.pc = loop_pc + opSize[dsp_peek_code()]; } } @@ -193,7 +193,7 @@ void bloopi(const UDSPInstruction& opc) } else { - g_dsp.pc = loop_pc + 1; + g_dsp.pc = loop_pc + opSize[dsp_peek_code()]; } }