Bit more interesting CPU
authorAlyssa Rosenzweig <alyssa@backtick.town>
Thu, 23 Jun 2016 16:19:11 +0000 (09:19 -0700)
committerAlyssa Rosenzweig <alyssa@backtick.town>
Thu, 23 Jun 2016 16:19:11 +0000 (09:19 -0700)
src/CPU/build-cpu.js

index 61c3d1a..6d9364e 100644 (file)
@@ -21,9 +21,15 @@ var emission = [
 
 var sources = table.map(function(x, i) {
     if(x) {
-        return "legit " + i;
+        return [
+            'say "' + x.assembly + '" for 2 seconds',
+            'change PC by ' + x.size
+        ].join("\n");
     } else {
-        return "illegit " + i;
+        return [
+            'say "Illegal Opcode ' + i + ' used, ignoring." for 2 seconds',
+            'change PC by 1'
+        ].join("\n");
     }
 });
 
This page took 0.022564 seconds and 4 git commands to generate.