summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/machine/scudsp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/machine/scudsp.c')
-rw-r--r--src/mame/machine/scudsp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mame/machine/scudsp.c b/src/mame/machine/scudsp.c
index 3f397c9d788..5aa197567ed 100644
--- a/src/mame/machine/scudsp.c
+++ b/src/mame/machine/scudsp.c
@@ -431,6 +431,10 @@ static void dsp_operation(address_space &space)
case 0x2: /* OR */
i3 = dsp_reg.acl.si | dsp_reg.pl.si;
dsp_reg.alu = (UINT64)(UINT32)i3;
+ /* TODO: Croc and some early Psygnosis games wants Z to be 1 when the result of this one is negative.
+ Needs HW tests ... */
+ if(i3 < 0)
+ i3 = 0;
SET_Z(i3 == 0);
SET_C(0);
SET_S(i3 < 0);