about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--subx/examples/ex1.subx6
-rw-r--r--subx/examples/ex10.subx6
-rw-r--r--subx/examples/ex11.subx6
-rw-r--r--subx/examples/ex12.subx6
-rw-r--r--subx/examples/ex2.subx6
-rw-r--r--subx/examples/ex3.subx6
-rw-r--r--subx/examples/ex4.subx6
-rw-r--r--subx/examples/ex5.subx6
-rw-r--r--subx/examples/ex6.subx6
-rw-r--r--subx/examples/ex7.subx6
-rw-r--r--subx/examples/ex8.subx6
-rw-r--r--subx/examples/ex9.subx6
12 files changed, 36 insertions, 36 deletions
diff --git a/subx/examples/ex1.subx b/subx/examples/ex1.subx
index ae909777..ddcdc4a0 100644
--- a/subx/examples/ex1.subx
+++ b/subx/examples/ex1.subx
@@ -1,9 +1,9 @@
 ## first program: same as https://www.muppetlabs.com/~breadbox/software/tiny/teensy.html
 # Just return 42.
 #
-# To run:
-#   $ subx translate ex1.2.subx -o ex1
-#   $ subx run ex1
+# To run (from the subx directory):
+#   $ subx translate examples/ex1.2.subx -o examples/ex1
+#   $ subx run examples/ex1
 # Expected result:
 #   $ echo $?
 #   42
diff --git a/subx/examples/ex10.subx b/subx/examples/ex10.subx
index 64a92f2c..d5e9b628 100644
--- a/subx/examples/ex10.subx
+++ b/subx/examples/ex10.subx
@@ -1,8 +1,8 @@
 ## String comparison: return 1 iff the two args passed in at the commandline are equal.
 #
-# To run:
-#   $ subx translate ex10.subx -o ex10
-#   $ subx run ex10 abc abd
+# To run (from the subx directory):
+#   $ subx translate examples/ex10.subx -o examples/ex10
+#   $ subx run examples/ex10 abc abd
 # Expected result:
 #   $ echo $?
 #   0  # false
diff --git a/subx/examples/ex11.subx b/subx/examples/ex11.subx
index 0159be69..3f0805af 100644
--- a/subx/examples/ex11.subx
+++ b/subx/examples/ex11.subx
@@ -5,9 +5,9 @@
 # This example shows a helper that can compare a commandline argument with the
 # (length-prefixed) literal string "target".
 #
-# To run:
-#   $ subx translate ex11.subx -o ex11
-#   $ subx run ex11  # runs a series of tests
+# To run (from the subx directory):
+#   $ subx translate examples/ex11.subx -o examples/ex11
+#   $ subx run examples/ex11  # runs a series of tests
 #   ......  # all tests pass
 #
 # (We can't yet run the tests when given a "test" commandline argument,
diff --git a/subx/examples/ex12.subx b/subx/examples/ex12.subx
index 86250d4d..43655565 100644
--- a/subx/examples/ex12.subx
+++ b/subx/examples/ex12.subx
@@ -1,9 +1,9 @@
 ## example showing mmap syscall
 # Create a new segment using mmap, save the address, write to it.
 #
-# To run:
-#   $ subx translate ex12.subx -o ex12
-#   $ subx run ex12
+# To run (from the subx directory):
+#   $ subx translate examples/ex12.subx -o examples/ex12
+#   $ subx run examples/ex12
 # You shouldn't get a segmentation fault.
 
 == code
diff --git a/subx/examples/ex2.subx b/subx/examples/ex2.subx
index 62294b83..1be295ff 100644
--- a/subx/examples/ex2.subx
+++ b/subx/examples/ex2.subx
@@ -1,8 +1,8 @@
 ## add 1 and 1, and return the result in the exit code
 #
-# To run:
-#   $ subx translate ex2.subx -o ex2
-#   $ subx run ex2
+# To run (from the subx directory):
+#   $ subx translate examples/ex2.subx -o examples/ex2
+#   $ subx run examples/ex2
 # Expected result:
 #   $ echo $?
 #   2
diff --git a/subx/examples/ex3.subx b/subx/examples/ex3.subx
index 50edd923..a6147497 100644
--- a/subx/examples/ex3.subx
+++ b/subx/examples/ex3.subx
@@ -1,8 +1,8 @@
 ## add the first 10 numbers, and return the result in the exit code
 #
-# To run:
-#   $ subx translate ex3.subx -o ex3
-#   $ subx run ex3
+# To run (from the subx directory):
+#   $ subx translate examples/ex3.subx -o examples/ex3
+#   $ subx run examples/ex3
 # Expected result:
 #   $ echo $?
 #   55
diff --git a/subx/examples/ex4.subx b/subx/examples/ex4.subx
index 89926a62..9864b49f 100644
--- a/subx/examples/ex4.subx
+++ b/subx/examples/ex4.subx
@@ -1,8 +1,8 @@
 ## read a character from stdin, save it to a global, write it to stdout
 #
-# To run:
-#   $ subx translate ex4.subx -o ex4
-#   $ subx run ex4
+# To run (from the subx directory):
+#   $ subx translate examples/ex4.subx -o examples/ex4
+#   $ subx run examples/ex4
 
 == code
 # instruction                     effective address                                                   operand     displacement    immediate
diff --git a/subx/examples/ex5.subx b/subx/examples/ex5.subx
index e00289a2..c12f5552 100644
--- a/subx/examples/ex5.subx
+++ b/subx/examples/ex5.subx
@@ -1,8 +1,8 @@
 ## read a character from stdin, save it to a local on the stack, write it to stdout
 #
-# To run:
-#   $ subx translate ex5.subx -o ex5
-#   $ subx run ex5
+# To run (from the subx directory):
+#   $ subx translate examples/ex5.subx -o examples/ex5
+#   $ subx run examples/ex5
 
 == code
 # instruction                     effective address                                                   operand     displacement    immediate
diff --git a/subx/examples/ex6.subx b/subx/examples/ex6.subx
index f9adcc5a..f0d10cd8 100644
--- a/subx/examples/ex6.subx
+++ b/subx/examples/ex6.subx
@@ -1,8 +1,8 @@
 ## print out a (global variable) string to stdout
 #
-# To run:
-#   $ subx translate ex6.subx -o ex6
-#   $ subx run ex6
+# To run (from the subx directory):
+#   $ subx translate examples/ex6.subx -o examples/ex6
+#   $ subx run examples/ex6
 #   Hello, world!
 
 == code
diff --git a/subx/examples/ex7.subx b/subx/examples/ex7.subx
index b6dc639a..d0e5d415 100644
--- a/subx/examples/ex7.subx
+++ b/subx/examples/ex7.subx
@@ -3,9 +3,9 @@
 # it for reading, read a character from it, close it, delete it, and return
 # the character read.
 #
-# To run:
-#   $ subx translate ex8.subx -o ex8
-#   $ subx run ex8
+# To run (from the subx directory):
+#   $ subx translate examples/ex8.subx -o examples/ex8
+#   $ subx run examples/ex8
 # Expected result:
 #   $ echo $?
 #   97
diff --git a/subx/examples/ex8.subx b/subx/examples/ex8.subx
index ba0ddcd3..e3c578c0 100644
--- a/subx/examples/ex8.subx
+++ b/subx/examples/ex8.subx
@@ -1,8 +1,8 @@
 ## Example reading commandline arguments: compute length of first arg.
 #
-# To run:
-#   $ subx translate ex8.subx -o ex8
-#   $ subx run ex8 abc de fghi
+# To run (from the subx directory):
+#   $ subx translate examples/ex8.subx -o examples/ex8
+#   $ subx run examples/ex8 abc de fghi
 # Expected result:
 #   $ echo $?
 #   3  # length of 'abc'
diff --git a/subx/examples/ex9.subx b/subx/examples/ex9.subx
index 3590839f..b6c64a87 100644
--- a/subx/examples/ex9.subx
+++ b/subx/examples/ex9.subx
@@ -2,9 +2,9 @@
 # Show difference between ascii codes of first letter of first arg and first
 # letter of second arg.
 #
-# To run:
-#   $ subx translate ex9.subx -o ex9
-#   $ subx run ex9 z x
+# To run (from the subx directory):
+#   $ subx translate examples/ex9.subx -o examples/ex9
+#   $ subx run examples/ex9 z x
 # Expected result:
 #   $ echo $?
 #   2
html/076continuation.cc.html?h=hlt&id=7452d0525ecfc12c11fe005c31b089a5b4d7a102'>7452d052 ^
5fe060d5 ^



7452d052 ^






















51b35031 ^
7452d052 ^







e4ac3c9e ^
7452d052 ^


e4ac3c9e ^
7452d052 ^






e4ac3c9e ^



7452d052 ^
5fe060d5 ^
e4ac3c9e ^

7452d052 ^











5fe060d5 ^
7452d052 ^





4bb57a55 ^


5fe060d5 ^
4bb57a55 ^












104e521c ^
4bb57a55 ^

e4ac3c9e ^

4bb57a55 ^
e4ac3c9e ^

4bb57a55 ^



e4ac3c9e ^
4bb57a55 ^


e4ac3c9e ^
4bb57a55 ^







e4ac3c9e ^

4bb57a55 ^

e4ac3c9e ^

104e521c ^
e4ac3c9e ^


4bb57a55 ^

e4ac3c9e ^





4bb57a55 ^
e4ac3c9e ^
4bb57a55 ^


e4ac3c9e ^
4bb57a55 ^
104e521c ^
e4ac3c9e ^
4bb57a55 ^




104e521c ^
4bb57a55 ^
104e521c ^
4bb57a55 ^






104e521c ^
e4ac3c9e ^
104e521c ^
e4ac3c9e ^
4bb57a55 ^
e4ac3c9e ^




4bb57a55 ^

104e521c ^
4bb57a55 ^










7452d052 ^
4bb57a55 ^
7452d052 ^
4bb57a55 ^

7452d052 ^
4bb57a55 ^



















7452d052 ^
4bb57a55 ^





















5fe060d5 ^
4bb57a55 ^






e4ac3c9e ^
4bb57a55 ^




7452d052 ^
4bb57a55 ^
7452d052 ^
4bb57a55 ^
7452d052 ^
4bb57a55 ^




















e4ac3c9e ^
4bb57a55 ^


5fe060d5 ^
e4ac3c9e ^
104e521c ^
4bb57a55 ^

e4ac3c9e ^
5fe060d5 ^
4bb57a55 ^
87c5b329 ^



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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440