diff options
| author | nakeee <nakeee@gmail.com> | 2009-07-16 10:02:47 +0000 |
|---|---|---|
| committer | nakeee <nakeee@gmail.com> | 2009-07-16 10:02:47 +0000 |
| commit | 4212773b1b38443febf28cd64cafca40d79dc26a (patch) | |
| tree | 26add8a88482d7ab7499cbd843ec01c00a402ec5 /Source/Core/DSPCore/Src/DspIntArithmetic.cpp | |
| parent | a48e1481041c11c06aa09a2b0c0cb111945f9eb7 (diff) | |
DSP LLE small reg load fixes
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3815 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/DSPCore/Src/DspIntArithmetic.cpp')
| -rw-r--r-- | Source/Core/DSPCore/Src/DspIntArithmetic.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/DSPCore/Src/DspIntArithmetic.cpp b/Source/Core/DSPCore/Src/DspIntArithmetic.cpp index dc02d5af59..147285fac9 100644 --- a/Source/Core/DSPCore/Src/DspIntArithmetic.cpp +++ b/Source/Core/DSPCore/Src/DspIntArithmetic.cpp @@ -180,7 +180,7 @@ void orr(const UDSPInstruction& opc) // ANDC $acD.m, $ac(1-D).m // 0011 110d xxxx xxxx // Logic AND middle part of accumulator $acD.m with middle part of -// accumulator $ax(1-D).m.s +// accumulator $ac(1-D).m void andc(const UDSPInstruction& opc) { u8 D = (opc.hex >> 8) & 0x1; @@ -239,9 +239,9 @@ void andcf(const UDSPInstruction& opc) // immediate value 0. void andf(const UDSPInstruction& opc) { - u8 reg = DSP_REG_ACM0 + ((opc.hex >> 8) & 0x1); + u8 reg = (opc.hex >> 8) & 0x1; u16 imm = dsp_fetch_code(); - u16 val = g_dsp.r[reg]; + u16 val = dsp_get_acc_m(reg); Update_SR_LZ(((val & imm) == 0) ? 0 : 1); } |
