about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-04-03 10:26:53 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-04-03 10:26:53 -0700
commit11bf6dedec922728e4e1bc88e697176b03b2b0da (patch)
treeb6e9624ca1fee4a75ef9394a904a96784d1d3c90
parentd91de4b8baf849b08d6248f16c22ea6f9cd26c49 (diff)
downloadmu-11bf6dedec922728e4e1bc88e697176b03b2b0da.tar.gz
1005
-rw-r--r--cpp/090debug9
1 files changed, 8 insertions, 1 deletions
diff --git a/cpp/090debug b/cpp/090debug
index 70d518ed..08373a49 100644
--- a/cpp/090debug
+++ b/cpp/090debug
@@ -6,7 +6,14 @@ Recipe_number["$print"] = _PRINT;
 assert(Next_recipe_number < _PRINT);
 :(before "End Primitive Recipe Implementations")
 case _PRINT: {
+  if (isa_literal(instructions[pc].ingredients[0])) {
+    cout << instructions[pc].ingredients[0].name << '\n';
+    break;
+  }
   vector<int> result(read_memory(instructions[pc].ingredients[0]));
-  cout << result[0] << '\n';
+  for (size_t i = 0; i < result.size(); ++i) {
+    cout << result[i] << " ";
+  }
+  cout << '\n';
   break;
 }