Fixed a small bug in J_CC when emitting jumps that exceed 0x80 in range (only used by DSP NR yet).

Add back a CMP nakee missed in his last commit

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5328 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
j4ck.fr0st
2010-04-11 12:27:27 +00:00
parent 7c35138435
commit 800595980e
3 changed files with 9 additions and 5 deletions

View File

@ -368,7 +368,7 @@ FixupBranch XEmitter::J_CC(CCFlags conditionCode, bool force5bytes)
{
FixupBranch branch;
branch.type = force5bytes ? 1 : 0;
branch.ptr = code + (force5bytes ? 5 : 2);
branch.ptr = code + (force5bytes ? 6 : 2);
if (!force5bytes)
{
//8 bits will do