Previous 15994 Revisions Next

r9881 Saturday 1st January, 2011 at 20:37:07 UTC by MooglyGuy
[N64] Corrected accumulator ordering in the RSP DRC, fixes Mario's left eyebrow [Harmony]
[src/emu/cpu/rsp]rsp.c

src/emu/cpu/rsp/rsp.c
r9880r9881
6464#define VEC_EL_2(x,z)         (vector_elements[(x)][(z)])
6565
6666#define ACCUM(x)      rsp->accum[((x))].q
67#define ACCUM_H(x)      rsp->accum[((x))].w[3]
68#define ACCUM_M(x)      rsp->accum[((x))].w[2]
69#define ACCUM_L(x)      rsp->accum[((x))].w[1]
67#define ACCUM_H(x)      rsp->accum[((x))].w[0]
68#define ACCUM_M(x)      rsp->accum[((x))].w[1]
69#define ACCUM_L(x)      rsp->accum[((x))].w[2]
7070
7171#define CARRY_FLAG(x)         ((rsp->flag[0] & (1 << ((x)))) ? 1 : 0)
7272#define CLEAR_CARRY_FLAGS()      { rsp->flag[0] &= ~0xff; }
r9880r9881
14811481            s1 = (INT32)(INT16)VREG_S(VS1REG, i);
14821482            s2 = (INT32)(INT16)VREG_S(VS2REG, sel);
14831483
1484            rsp->accum[i].l[1] += s1*s2;
1484            rsp->accum[i].l[0] += s1*s2;
14851485
14861486            res = SATURATE_ACCUM1(rsp, i, 0x8000, 0x7fff);
14871487

Previous 15994 Revisions Next


© 1998-2018 The MESS Team