7dbdb38d76e70898b67d9fc7639b0a3078745522
[ScratchNES.git] / src / CPU / build-transfer.js
1 /* builds TAX-family instructions */
2 /* note these get a little funky because of differences in encoding */
3
4 var fs = require("fs");
5
6 var list = ["AX", "AY", "SX", "XA", "XS", "YA"];
7 list.forEach(emit);
8
9 function emit(name) {
10 var emission = [
11 "IMPLIED"
12 ];
13
14 emission.push("set " + name[1] + " to " + name[0]);
15
16 fs.writeFileSync("instructions/T" + name, emission.join("\n"));
17 }
This page took 0.064064 seconds and 5 git commands to generate.