drc: more timing hacks
authornotaz <notasas@gmail.com>
Thu, 25 Dec 2014 18:27:43 +0000 (20:27 +0200)
committernotaz <notasas@gmail.com>
Thu, 25 Dec 2014 19:20:13 +0000 (21:20 +0200)
b6e87b2bc096 broke R-Type sound, try to recover..
also check PE2

libpcsxcore/new_dynarec/new_dynarec.c

index 8d1e53a..5120df0 100644 (file)
@@ -9885,6 +9885,10 @@ int new_recompile_block(int addr)
     {
       cc+=2; // 2 cycle penalty (after CLOCK_DIVIDER)
     }
+    else if(i>1&&itype[i]==STORE&&itype[i-1]==STORE&&itype[i-2]==STORE&&!bt[i])
+    {
+      cc+=4;
+    }
     else if(itype[i]==C2LS)
     {
       cc+=4;