Don't advance in JSR
authorAlyssa Rosenzweig <alyssa@backtick.town>
Thu, 23 Jun 2016 23:55:53 +0000 (16:55 -0700)
committerAlyssa Rosenzweig <alyssa@backtick.town>
Thu, 23 Jun 2016 23:55:53 +0000 (16:55 -0700)
src/CPU/build-cpu.js

index 48d8e6d..1fecf0c 100644 (file)
@@ -115,7 +115,7 @@ var sources = table.map(function(x, i) {
 
         instruction.push('say "' + x.assembler + '"');
 
-        if(x.name != "JMP") {
+        if(x.name != "JMP" && x.name != "JSR") {
             instruction.push("change PC by " + x.size);
         }
 
This page took 0.027956 seconds and 4 git commands to generate.