DSP: loop should jump the right instruction size

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2890 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
nakeee 2009-04-05 21:30:08 +00:00
parent 360c7e69e6
commit 12557c4a7e
1 changed files with 4 additions and 4 deletions

View File

@ -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()];
}
}