Fix
authorAlyssa Rosenzweig <alyssa@backtick.town>
Thu, 23 Jun 2016 19:10:53 +0000 (12:10 -0700)
committerAlyssa Rosenzweig <alyssa@backtick.town>
Thu, 23 Jun 2016 19:10:53 +0000 (12:10 -0700)
src/CPU/build-cpu.js

index 0746740..f7cdfe1 100644 (file)
@@ -113,9 +113,9 @@ var sources = table.map(function(x, i) {
             instruction.push("set flagC to <" + operand + " > 255 or " + operand + " < 0>");
         }
 
-        instruction = instruction.push('say "' + x.assembler + '" for 2 secs');
+        instruction.push('say "' + x.assembler + '" for 2 secs');
 
-        if(instruction.name != "JMP") {
+        if(x.name != "JMP") {
             instruction.push("change PC by " + x.size);
         }
 
This page took 0.026459 seconds and 4 git commands to generate.