]> www.vanbest.org Git - sasc-ng.git/commitdiff
nagra: fix NEG (from emunation)
authorleslie <unknown>
Tue, 12 Feb 2008 18:23:40 +0000 (19:23 +0100)
committerleslie <unknown>
Tue, 12 Feb 2008 18:23:40 +0000 (19:23 +0100)
systems/nagra/cpu.c

index a9f155ef4f2d2fd218f95b9d62be0136ec493403..50b97c5fe56a034a551ef3e233f90b3ff3369e6c 100644 (file)
@@ -720,7 +720,7 @@ int c6805::Run(int max_count)
       case 0x50:
       case 0x60:
       case 0x70:
-        op=~op+1; if(!op) cc.c=0; tst(op); break;
+        op=~op+1; cc.c=(op!=0); tst(op); break;
       case 0x42: // MUL
       case 0x52:
         {