Woohoo :D ASL A works, and the flag setting is correct
authorAlyssa Rosenzweig <alyssa@backtick.town>
Thu, 23 Jun 2016 17:45:31 +0000 (10:45 -0700)
committerAlyssa Rosenzweig <alyssa@backtick.town>
Thu, 23 Jun 2016 17:45:31 +0000 (10:45 -0700)
src/CPU/build-cpu.js

index 2658c60..32782db 100644 (file)
@@ -69,6 +69,7 @@ var sources = table.map(function(x, i) {
             instruction.push("set OP to M");
         } else if(mode == "RW") {
             if(x.addressing == "accumulator") {
+                operand = "A";
                 ins = ins.map(function(q) {
                     return q.replace(/OP/g, "A");
                 });
This page took 0.033494 seconds and 4 git commands to generate.