about summary refs log tree commit diff stats
path: root/cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp')
-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;
 }
ram <vc@akkartik.com> 2019-08-20 00:20:38 -0700 committer Kartik Agaram <vc@akkartik.com> 2019-08-20 00:20:38 -0700 5522 - example app: random number stream' href='/akkartik/mu/commit/apps/random.subx?h=main&id=0bb09d2e14cdf1c1571a8e80ae30460699d00e82'>0bb09d2e ^
33352536 ^



0bb09d2e ^















33352536 ^
0bb09d2e ^



33352536 ^

0bb09d2e ^










1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62