Bitmask table
authorAlyssa Rosenzweig <alyssa@backtick.town>
Sat, 2 Jul 2016 18:11:00 +0000 (11:11 -0700)
committerAlyssa Rosenzweig <alyssa@backtick.town>
Sat, 2 Jul 2016 18:11:00 +0000 (11:11 -0700)
src/CPU/build-lookups.js

index 6979646..3500930 100644 (file)
@@ -9,6 +9,7 @@ emit("EOR", function(a,b){return a^b});
 emit("ORA", function(a,b){return a|b});
 emit("AND", function(a,b){return a&b});
 emit("hex", function(a,b){return ((a<<4)|b).toString(16)});
+emit("bitmask", function(a,b){return ("00000000"+((a<<4)|b).toString(2)).substr(-8,8)});
 
 function emit(name, func) {
     var emission = [];
This page took 0.024975 seconds and 4 git commands to generate.