about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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;
 }