From a443ec7d8d32cbbe616b4d0775944b7ccdf5b1e4 Mon Sep 17 00:00:00 2001 From: nakeee Date: Sun, 25 Apr 2010 14:35:13 +0000 Subject: [PATCH] DSP Jit annoying shifts git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5406 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 8afabf507e..1dd9186dff 100644 --- a/Source/Core/DSPCore/Src/Jit/DSPJitUtil.cpp +++ b/Source/Core/DSPCore/Src/Jit/DSPJitUtil.cpp @@ -265,7 +265,7 @@ void DSPEmitter::ext_dmem_write(u32 dest, u32 src) // g_dsp.dram[addr & DSP_DRAM_MASK] = val; AND(16, R(EAX), Imm16(DSP_DRAM_MASK)); - SHL(16, R(EAX), Imm16(1)); // * sizeof(u16) + SHL(16, R(EAX), Imm8(1)); // * sizeof(u16) #ifdef _M_X64 MOV(64, R(R11), Imm64((u64)g_dsp.dram)); ADD(64, R(EAX), R(R11)); @@ -296,7 +296,7 @@ void DSPEmitter::ext_dmem_read(u16 addr) FixupBranch dram = J_CC(CC_NZ); // return g_dsp.dram[addr & DSP_DRAM_MASK]; AND(16, R(ECX), Imm16(DSP_DRAM_MASK)); - SHL(16, R(ECX), Imm16(1)); // * sizeof(u16) + SHL(16, R(ECX), Imm8(1)); // * sizeof(u16) #ifdef _M_X64 MOV(64, R(R11), Imm64((u64)g_dsp.dram)); ADD(64, R(ECX), R(R11));