about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-03-14 17:10:43 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-03-14 17:10:43 -0700
commitd241c9c41cdf2c1d0aa01d9ddb00e110ebaded97 (patch)
treeb46e19b8dd613e095117455740bb4b9b8510f9d8
parent9cf71627174aebeabe9149df454785b3ef6b92d8 (diff)
downloadmu-d241c9c41cdf2c1d0aa01d9ddb00e110ebaded97.tar.gz
911
-rw-r--r--cpp/012run22
1 files changed, 11 insertions, 11 deletions
diff --git a/cpp/012run b/cpp/012run
index 46a90b7f..4fdb7ebb 100644
--- a/cpp/012run
+++ b/cpp/012run
@@ -63,17 +63,17 @@ void run(routine rr) {
 //?     cout << "instruction " << TOP_RECIPE.name << '/' << pc << '\n'; //? 2
     trace("run") << "instruction " << TOP_RECIPE.name << '/' << pc;
     switch (instructions[pc].operation) {
-    // Primitive Recipe Implementations.
-    case COPY: {
-      trace("run") << "ingredient 0 is " << instructions[pc].ingredients[0].name;
-      vector<int> data = read_memory(instructions[pc].ingredients[0]);
-      write_memory(instructions[pc].products[0], data);
-      break;
-    }
-    // End Primitive Recipe Implementations.
-    default: {
-      cout << "non primitive op: " << instructions[pc].operation << '\n';
-    }
+      // Primitive Recipe Implementations.
+      case COPY: {
+        trace("run") << "ingredient 0 is " << instructions[pc].ingredients[0].name;
+        vector<int> data = read_memory(instructions[pc].ingredients[0]);
+        write_memory(instructions[pc].products[0], data);
+        break;
+      }
+      // End Primitive Recipe Implementations.
+      default: {
+        cout << "non primitive op: " << instructions[pc].operation << '\n';
+      }
     }
     ++pc;
   }