From 026450006afc6b76d5bd6bc49493ecf4532bfe90 Mon Sep 17 00:00:00 2001 From: nakeee Date: Tue, 20 Apr 2010 10:52:28 +0000 Subject: [PATCH] DSP jit shift fix Please tell me if 'mv still crashes git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5392 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/DSPCore/Src/Jit/DSPJitUtil.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Core/DSPCore/Src/Jit/DSPJitUtil.cpp b/Source/Core/DSPCore/Src/Jit/DSPJitUtil.cpp index d744d24d1c..2676b08f32 100644 --- a/Source/Core/DSPCore/Src/Jit/DSPJitUtil.cpp +++ b/Source/Core/DSPCore/Src/Jit/DSPJitUtil.cpp @@ -257,7 +257,7 @@ void DSPEmitter::ext_dmem_write(u32 dest, u32 src) // u16 saddr = addr >> 12; MOVZX(32, 16, ESI, R(EAX)); - SHR(16, R(ESI), Imm16(12)); + SHR(16, R(ESI), Imm8(12)); // if (saddr == 0) CMP(16, R(ESI), Imm16(0)); @@ -288,7 +288,7 @@ void DSPEmitter::ext_dmem_read(u16 addr) // u16 saddr = addr >> 12; MOVZX(32, 16, ESI, R(EAX)); - SHR(16, R(ESI), Imm16(12)); + SHR(16, R(ESI), Imm8(12)); // if (saddr == 0) CMP(16, R(ESI), Imm16(0));