Parse the other flags
authorAlyssa Rosenzweig <alyssa@backtick.town>
Thu, 23 Jun 2016 18:33:11 +0000 (11:33 -0700)
committerAlyssa Rosenzweig <alyssa@backtick.town>
Thu, 23 Jun 2016 18:33:11 +0000 (11:33 -0700)
src/CPU/build-cpu.js

index 04c6aa0..6569df6 100644 (file)
@@ -52,7 +52,8 @@ var sources = table.map(function(x, i) {
         flags.forEach(function(flag) {
             if(flag == "N") negQ = true;
             else if(flag == "Z") zeroQ = true;
-            else if(["R", "RW", "IMPLIED", "RAW", "BRANCH"].indexOf(flag) > -1)
+            else if(flag == "C") carryQ = true;
+            else if(["R", "RW", "IMPLIED", "RAW", "BRANCH", "W"].indexOf(flag) > -1)
                 mode = flag;
             else if (["A", "X", "Y", "tmp", "OP"].indexOf(flag) > -1)
                 operand = flag;
This page took 0.028876 seconds and 4 git commands to generate.