summaryrefslogtreecommitdiff
path: root/Source/Core/DSPCore
diff options
context:
space:
mode:
authorj4ck.fr0st <j4ck.fr0st@gmail.com>2010-04-11 12:27:27 +0000
committerj4ck.fr0st <j4ck.fr0st@gmail.com>2010-04-11 12:27:27 +0000
commit800595980e0bea5a8da5bfe4124369f89c2bf8af (patch)
treee46d0983cbc40cf6ea04a4b1486344b2d4f8e910 /Source/Core/DSPCore
parent7c35138435251458b482f82e62cef73da27bc76c (diff)
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
Diffstat (limited to 'Source/Core/DSPCore')
-rw-r--r--Source/Core/DSPCore/Src/Jit/DSPJitUtil.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/Core/DSPCore/Src/Jit/DSPJitUtil.cpp b/Source/Core/DSPCore/Src/Jit/DSPJitUtil.cpp
index af3bf6e5ed..8c7edd5704 100644
--- a/Source/Core/DSPCore/Src/Jit/DSPJitUtil.cpp
+++ b/Source/Core/DSPCore/Src/Jit/DSPJitUtil.cpp
@@ -125,6 +125,8 @@ void DSPEmitter::increase_addr_reg(int reg)
XOR(32, R(ESI), R(ESI)); // i = 0
// if (value > 0)
+ CMP(16, R(EDX), Imm16(0));
+ //end is further away than 0x7f, needs a 6-byte jz
FixupBranch end = J_CC(CC_Z, true);
FixupBranch negValue = J_CC(CC_L);