Fix INC/DEC bug
authorAlyssa Rosenzweig <alyssa@backtick.town>
Sat, 10 Sep 2016 03:48:43 +0000 (20:48 -0700)
committerAlyssa Rosenzweig <alyssa@backtick.town>
Sat, 10 Sep 2016 03:48:43 +0000 (20:48 -0700)
src/CPU/build-crement.js

index 37fa206..4c6e978 100644 (file)
@@ -20,8 +20,8 @@ function emit(register, name, value) {
         emission.push("RW, N, Z, OP");
         emission.push("set OP to (OP + " + value + ") mod 256");
     } else {
-        emission.push("IMPLIED," + register + ",N,Z," + register);
-        emission.push("set " + register + " to (" + register + " + " value + ") mod 256");
+        emission.push("IMPLIED,N,Z," + register);
+        emission.push("set " + register + " to (" + register + " + " value + ") mod 256");
     }
 
     fs.writeFileSync("instructions/" + name, emission.join("\n"));
This page took 0.021755 seconds and 4 git commands to generate.