Emit parsing to JSON
authorAlyssa Rosenzweig <alyssa@backtick.town>
Wed, 22 Jun 2016 18:55:22 +0000 (11:55 -0700)
committerAlyssa Rosenzweig <alyssa@backtick.town>
Wed, 22 Jun 2016 18:55:22 +0000 (11:55 -0700)
src/CPU/parse-reference.js

index 8c28820..bc6fc12 100644 (file)
@@ -42,7 +42,7 @@ opcodes.forEach(function(opcode) {
     table[opcode.opcode] = opcode;
 });
 
-console.log(table);
+fs.writeFileSync("bin/table.json", JSON.stringify(table));
 
 function parseInstruction(instruction) {
     // get instruction name
This page took 0.02517 seconds and 4 git commands to generate.