mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 05:47:56 -07:00
DSP Jit annoying shifts
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5406 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
64447eab2c
commit
a443ec7d8d
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user