| 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 |
| r20936 | r20937 | |
|---|---|---|
| 431 | 431 | case 0x2: /* OR */ |
| 432 | 432 | i3 = dsp_reg.acl.si | dsp_reg.pl.si; |
| 433 | 433 | dsp_reg.alu = (UINT64)(UINT32)i3; |
| 434 | SET_C(0); | |
| 435 | SET_S(i3 < 0); | |
| 434 | 436 | /* TODO: Croc and some early Psygnosis games wants Z to be 1 when the result of this one is negative. |
| 435 | 437 | Needs HW tests ... */ |
| 436 | 438 | if(i3 < 0) |
| 437 | 439 | i3 = 0; |
| 438 | 440 | SET_Z(i3 == 0); |
| 439 | SET_C(0); | |
| 440 | SET_S(i3 < 0); | |
| 441 | 441 | break; |
| 442 | 442 | case 0x3: /* XOR */ |
| 443 | 443 | i3 = dsp_reg.acl.si ^ dsp_reg.pl.si; |
| Previous | 199869 Revisions | Next |