src/emu/cpu/rsp/rsp.c
| r9880 | r9881 | |
| 64 | 64 | #define VEC_EL_2(x,z) (vector_elements[(x)][(z)]) |
| 65 | 65 | |
| 66 | 66 | #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] |
| 70 | 70 | |
| 71 | 71 | #define CARRY_FLAG(x) ((rsp->flag[0] & (1 << ((x)))) ? 1 : 0) |
| 72 | 72 | #define CLEAR_CARRY_FLAGS() { rsp->flag[0] &= ~0xff; } |
| r9880 | r9881 | |
| 1481 | 1481 | s1 = (INT32)(INT16)VREG_S(VS1REG, i); |
| 1482 | 1482 | s2 = (INT32)(INT16)VREG_S(VS2REG, sel); |
| 1483 | 1483 | |
| 1484 | | rsp->accum[i].l[1] += s1*s2; |
| 1484 | rsp->accum[i].l[0] += s1*s2; |
| 1485 | 1485 | |
| 1486 | 1486 | res = SATURATE_ACCUM1(rsp, i, 0x8000, 0x7fff); |
| 1487 | 1487 | |