fix branches
authorAlyssa Rosenzweig <alyssa@backtick.town>
Thu, 23 Jun 2016 14:51:34 +0000 (07:51 -0700)
committerAlyssa Rosenzweig <alyssa@backtick.town>
Thu, 23 Jun 2016 14:51:34 +0000 (07:51 -0700)
src/CPU/branch-maker.js

index f4c31ed..8fe8753 100644 (file)
@@ -29,7 +29,7 @@ function emit(name, flag, value) {
     emission.push(
             "change PC by " +
             flagNum +
-            " * (M + 256 * (<M < 128> - 1))"
+            " * ((join \"0x\" (M)) + 256 * (<(join \"0x\" (M)) < 128> - 1))"
     );
 
     fs.writeFileSync("instructions/" + name, emission.join("\n"));
This page took 0.021638 seconds and 4 git commands to generate.