Previous 199869 Revisions Next

r20937 Monday 11th February, 2013 at 13:34:58 UTC by Angelo Salese
Actually fixed Sign flag in OR opcode
[src/mame/machine]scudsp.c

trunk/src/mame/machine/scudsp.c
r20936r20937
431431      case 0x2:   /* OR */
432432         i3 = dsp_reg.acl.si | dsp_reg.pl.si;
433433         dsp_reg.alu = (UINT64)(UINT32)i3;
434         SET_C(0);
435         SET_S(i3 < 0);
434436         /* TODO: Croc and some early Psygnosis games wants Z to be 1 when the result of this one is negative.
435437                  Needs HW tests ... */
436438         if(i3 < 0)
437439            i3 = 0;
438440         SET_Z(i3 == 0);
439         SET_C(0);
440         SET_S(i3 < 0);
441441         break;
442442      case 0x3:   /* XOR */
443443         i3 = dsp_reg.acl.si ^ dsp_reg.pl.si;

Previous 199869 Revisions Next


© 1997-2024 The MAME Team