about summary refs log tree commit diff stats
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rwxr-xr-xapps/assortbin40205 -> 40175 bytes
-rw-r--r--apps/assort.subx2
-rwxr-xr-xapps/bracesbin39594 -> 39569 bytes
-rwxr-xr-xapps/callsbin44955 -> 44930 bytes
-rwxr-xr-xapps/crenshaw2-1bin33939 -> 33919 bytes
-rwxr-xr-xapps/crenshaw2-1bbin34498 -> 34478 bytes
-rwxr-xr-xapps/dquotesbin45409 -> 45364 bytes
-rw-r--r--apps/dquotes.subx18
-rwxr-xr-xapps/factorialbin32951 -> 32931 bytes
-rwxr-xr-xapps/handlebin33805 -> 33785 bytes
-rwxr-xr-xapps/hexbin42598 -> 42573 bytes
-rwxr-xr-xapps/packbin52891 -> 52846 bytes
-rw-r--r--apps/pack.subx8
-rwxr-xr-xapps/sigilsbin52918 -> 52868 bytes
-rw-r--r--apps/sigils.subx10
-rw-r--r--apps/subx-common.subx2
-rwxr-xr-xapps/surveybin49488 -> 49448 bytes
-rw-r--r--apps/survey.subx16
-rwxr-xr-xapps/testsbin39017 -> 38992 bytes
19 files changed, 21 insertions, 35 deletions
diff --git a/apps/assort b/apps/assort
index aac0b75a..69d3436b 100755
--- a/apps/assort
+++ b/apps/assort
Binary files differdiff --git a/apps/assort.subx b/apps/assort.subx
index 71aee164..2e9fee47 100644
--- a/apps/assort.subx
+++ b/apps/assort.subx
@@ -250,7 +250,7 @@ test-convert:
     81          0/subop/add         3/mod/direct    4/rm32/esp    .           .             .           .           .               8/imm32           # add to esp
     # . write(_test-input-stream, "\n")  # empty line
     # . . push args
-    68/push  "\n"/imm32
+    68/push  Newline/imm32
     68/push  _test-input-stream/imm32
     # . . call
     e8/call  write/disp32
diff --git a/apps/braces b/apps/braces
index c3f88cd8..67c0f75a 100755
--- a/apps/braces
+++ b/apps/braces
Binary files differdiff --git a/apps/calls b/apps/calls
index 11179969..2ec41b22 100755
--- a/apps/calls
+++ b/apps/calls
Binary files differdiff --git a/apps/crenshaw2-1 b/apps/crenshaw2-1
index 62c12a81..e8992622 100755
--- a/apps/crenshaw2-1
+++ b/apps/crenshaw2-1
Binary files differdiff --git a/apps/crenshaw2-1b b/apps/crenshaw2-1b
index e22acd4a..cddb2555 100755
--- a/apps/crenshaw2-1b
+++ b/apps/crenshaw2-1b
Binary files differdiff --git a/apps/dquotes b/apps/dquotes
index d3f84e8b..ede07c89 100755
--- a/apps/dquotes
+++ b/apps/dquotes
Binary files differdiff --git a/apps/dquotes.subx b/apps/dquotes.subx
index 6e5882b9..337992e4 100644
--- a/apps/dquotes.subx
+++ b/apps/dquotes.subx
@@ -226,7 +226,7 @@ $convert:regular-word:
 $convert:next-word:
     # write-buffered(out, " ")
     # . . push args
-    68/push  " "/imm32
+    68/push  Space/imm32
     ff          6/subop/push        1/mod/*+disp8   5/rm32/ebp    .           .             .           .           0xc/disp8       .                 # push *(ebp+12)
     # . . call
     e8/call  write-buffered/disp32
@@ -472,7 +472,7 @@ test-convert-is-idempotent-by-default:
     81          0/subop/add         3/mod/direct    4/rm32/esp    .           .             .           .           .               8/imm32           # add to esp
     # . write(_test-input-stream, "\n")  # empty line
     # . . push args
-    68/push  "\n"/imm32
+    68/push  Newline/imm32
     68/push  _test-input-stream/imm32
     # . . call
     e8/call  write/disp32
@@ -2315,20 +2315,6 @@ test-string-length-at-start-of-slice-escaped:
 Next-string-literal:  # tracks the next auto-generated variable name
   1/imm32
 
-# length-prefixed string containing just a single space
-Space:
-    # size
-    1/imm32
-    # data
-    20/space
-
-# length-prefixed string containing just a single slash
-Slash:
-    # size
-    1/imm32
-    # data
-    2f/slash
-
 _test-slice-abc:
   22/dquote 61/a 62/b 63/c 22/dquote  # "abc"
   2f/slash 64/d
diff --git a/apps/factorial b/apps/factorial
index ad02a27e..19f57d7a 100755
--- a/apps/factorial
+++ b/apps/factorial
Binary files differdiff --git a/apps/handle b/apps/handle
index c4ed2356..1ac9ea30 100755
--- a/apps/handle
+++ b/apps/handle
Binary files differdiff --git a/apps/hex b/apps/hex
index e5cdd533..f0828df4 100755
--- a/apps/hex
+++ b/apps/hex
Binary files differdiff --git a/apps/pack b/apps/pack
index 55fcfb6d..56826bf4 100755
--- a/apps/pack
+++ b/apps/pack
Binary files differdiff --git a/apps/pack.subx b/apps/pack.subx
index f4caceba..4dda514b 100644
--- a/apps/pack.subx
+++ b/apps/pack.subx
@@ -1133,7 +1133,7 @@ $convert-data:single-byte:
 $convert-data:break:
     # write-buffered(out, "\n")
     # . . push args
-    68/push  "\n"/imm32
+    68/push  Newline/imm32
     ff          6/subop/push        1/mod/*+disp8   5/rm32/ebp    .           .             .           .           0xc/disp8       .                 # push *(ebp+12)
     # . . call
     e8/call  write-buffered/disp32
@@ -2102,7 +2102,7 @@ $emit-opcodes:op1:
     81          0/subop/add         3/mod/direct    4/rm32/esp    .           .             .           .           .               8/imm32           # add to esp
     # write-buffered(out, " ")
     # . . push args
-    68/push  " "/imm32
+    68/push  Space/imm32
     ff          6/subop/push        1/mod/*+disp8   5/rm32/ebp    .           .             .           .           0xc/disp8       .                 # push *(ebp+12)
     # . . call
     e8/call  write-buffered/disp32
@@ -2195,7 +2195,7 @@ $emit-opcodes:op2:
     81          0/subop/add         3/mod/direct    4/rm32/esp    .           .             .           .           .               8/imm32           # add to esp
     # write-buffered(out, " ")
     # . . push args
-    68/push  " "/imm32
+    68/push  Space/imm32
     ff          6/subop/push        1/mod/*+disp8   5/rm32/ebp    .           .             .           .           0xc/disp8       .                 # push *(ebp+12)
     # . . call
     e8/call  write-buffered/disp32
@@ -2274,7 +2274,7 @@ $emit-opcodes:op3:
     81          0/subop/add         3/mod/direct    4/rm32/esp    .           .             .           .           .               8/imm32           # add to esp
     # write-buffered(out, " ")
     # . . push args
-    68/push  " "/imm32
+    68/push  Space/imm32
     ff          6/subop/push        1/mod/*+disp8   5/rm32/ebp    .           .             .           .           0xc/disp8       .                 # push *(ebp+12)
     # . . call
     e8/call  write-buffered/disp32
diff --git a/apps/sigils b/apps/sigils
index 22dadf70..4a4bebf1 100755
--- a/apps/sigils
+++ b/apps/sigils
Binary files differdiff --git a/apps/sigils.subx b/apps/sigils.subx
index e495483e..8c8beba7 100644
--- a/apps/sigils.subx
+++ b/apps/sigils.subx
@@ -341,7 +341,7 @@ $convert:regular-word:
 $convert:next-word:
     # write-buffered(out, " ")
     # . . push args
-    68/push  " "/imm32
+    68/push  Space/imm32
     ff          6/subop/push        1/mod/*+disp8   5/rm32/ebp    .           .             .           .           0xc/disp8       .                 # push *(ebp+12)
     # . . call
     e8/call  write-buffered/disp32
@@ -2582,7 +2582,7 @@ $parse-effective-address:error1:
     81          0/subop/add         3/mod/direct    4/rm32/esp    .           .             .           .           .               8/imm32           # add to esp
     # . write-buffered(Stderr, "\n")
     # . . push args
-    68/push  "\n"/imm32
+    68/push  Newline/imm32
     68/push  Stderr/imm32
     # . . call
     e8/call  write-buffered/disp32
@@ -2621,7 +2621,7 @@ $parse-effective-address:error2:
     81          0/subop/add         3/mod/direct    4/rm32/esp    .           .             .           .           .               8/imm32           # add to esp
     # . write-buffered(Stderr, "\n")
     # . . push args
-    68/push  "\n"/imm32
+    68/push  Newline/imm32
     68/push  Stderr/imm32
     # . . call
     e8/call  write-buffered/disp32
@@ -2660,7 +2660,7 @@ $parse-effective-address:error3:
     81          0/subop/add         3/mod/direct    4/rm32/esp    .           .             .           .           .               8/imm32           # add to esp
     # . write-buffered(Stderr, "\n")
     # . . push args
-    68/push  "\n"/imm32
+    68/push  Newline/imm32
     68/push  Stderr/imm32
     # . . call
     e8/call  write-buffered/disp32
@@ -4194,7 +4194,7 @@ $next-hex-int:abort:
     81          0/subop/add         3/mod/direct    4/rm32/esp    .           .             .           .           .               4/imm32           # add to esp
     # . _write(2/stderr, "\n")
     # . . push args
-    68/push  "\n"/imm32
+    68/push  Newline/imm32
     68/push  2/imm32/stderr
     # . . call
     e8/call  _write/disp32
diff --git a/apps/subx-common.subx b/apps/subx-common.subx
index 7cce0d20..cc3b12af 100644
--- a/apps/subx-common.subx
+++ b/apps/subx-common.subx
@@ -699,7 +699,7 @@ $emit:name:
     81          0/subop/add         3/mod/direct    4/rm32/esp    .           .             .           .           .               8/imm32           # add to esp
     # . write-buffered(out, " ")
     # . . push args
-    68/push  " "/imm32
+    68/push  Space/imm32
     ff          6/subop/push        1/mod/*+disp8   5/rm32/ebp    .           .             .           .           8/disp8         .                 # push *(ebp+8)
     # . . call
     e8/call  write-buffered/disp32
diff --git a/apps/survey b/apps/survey
index b55bc007..ec7e318f 100755
--- a/apps/survey
+++ b/apps/survey
Binary files differdiff --git a/apps/survey.subx b/apps/survey.subx
index e685d436..678ed116 100644
--- a/apps/survey.subx
+++ b/apps/survey.subx
@@ -197,7 +197,7 @@ convert:  # infile : (address buffered-file), out : (address buffered-file) -> <
 #?     81          0/subop/add         3/mod/direct    4/rm32/esp    .           .             .           .           .               4/imm32           # add to esp
 #?     # . write(2/stderr, "\n")
 #?     # . . push args
-#?     68/push  "\n"/imm32
+#?     68/push  Newline/imm32
 #?     68/push  2/imm32/stderr
 #?     # . . call
 #?     e8/call  write/disp32
@@ -260,7 +260,7 @@ convert:  # infile : (address buffered-file), out : (address buffered-file) -> <
 #?     81          0/subop/add         3/mod/direct    4/rm32/esp    .           .             .           .           .               4/imm32           # add to esp
 #?     # . write(2/stderr, "\n")
 #?     # . . push args
-#?     68/push  "\n"/imm32
+#?     68/push  Newline/imm32
 #?     68/push  2/imm32/stderr
 #?     # . . call
 #?     e8/call  write/disp32
@@ -416,7 +416,7 @@ convert:  # infile : (address buffered-file), out : (address buffered-file) -> <
 #?     81          0/subop/add         3/mod/direct    4/rm32/esp    .           .             .           .           .               4/imm32           # add to esp
 #?     # . write(2/stderr, "\n")
 #?     # . . push args
-#?     68/push  "\n"/imm32
+#?     68/push  Newline/imm32
 #?     68/push  2/imm32/stderr
 #?     # . . call
 #?     e8/call  write/disp32
@@ -1160,7 +1160,7 @@ $compute-offsets:case-default:
 #?     81          0/subop/add         3/mod/direct    4/rm32/esp    .           .             .           .           .               4/imm32           # add to esp
 #?     # . write(2/stderr, "\n")
 #?     # . . push args
-#?     68/push  "\n"/imm32
+#?     68/push  Newline/imm32
 #?     68/push  2/imm32/stderr
 #?     # . . call
 #?     e8/call  write/disp32
@@ -2214,7 +2214,7 @@ $emit-segments:2-character:
     81          0/subop/add         3/mod/direct    4/rm32/esp    .           .             .           .           .               8/imm32           # add to esp
     # write-buffered(out, " ")
     # . . push args
-    68/push  " "/imm32
+    68/push  Space/imm32
     ff          6/subop/push        1/mod/*+disp8   5/rm32/ebp    .           .             .           .           0xc/disp8       .                 # push *(ebp+12)
     # . . call
     e8/call  write-buffered/disp32
@@ -3328,7 +3328,7 @@ $emit-headers:loop:
 #?     81          0/subop/add         3/mod/direct    4/rm32/esp    .           .             .           .           .               4/imm32           # add to esp
 #?     # . write(2/stderr, "\n")
 #?     # . . push args
-#?     68/push  "\n"/imm32
+#?     68/push  Newline/imm32
 #?     68/push  2/imm32/stderr
 #?     # . . call
 #?     e8/call  write/disp32
@@ -3416,7 +3416,7 @@ emit-elf-header:  # out : (address buffered-file), segments : (address stream {s
     81          0/subop/add         3/mod/direct    4/rm32/esp    .           .             .           .           .               8/imm32           # add to esp
     # write-buffered(out, "\n")
     # . . push args
-    68/push  "\n"/imm32
+    68/push  Newline/imm32
     ff          6/subop/push        1/mod/*+disp8   5/rm32/ebp    .           .             .           .           8/disp8         .                 # push *(ebp+8)
     # . . call
     e8/call  write-buffered/disp32
@@ -3504,7 +3504,7 @@ $emit-elf-program-header-entry:really-emit:
     81          0/subop/add         3/mod/direct    4/rm32/esp    .           .             .           .           .               8/imm32           # add to esp
     # write-buffered(out, "\n")
     # . . push args
-    68/push  "\n"/imm32
+    68/push  Newline/imm32
     ff          6/subop/push        1/mod/*+disp8   5/rm32/ebp    .           .             .           .           8/disp8         .                 # push *(ebp+8)
     # . . call
     e8/call  write-buffered/disp32
diff --git a/apps/tests b/apps/tests
index 2fc7071c..36ba05ea 100755
--- a/apps/tests
+++ b/apps/tests
Binary files differ
ble.py?h=v1.9.0b2&id=2b8338c11bd7b8d327321e21a6f1fc9d231d512e'>^
d88232a3 ^
d621586e ^


42fd3690 ^


d88232a3 ^
42fd3690 ^

ea87d005 ^
d88232a3 ^
0cfc59d6 ^

b4b0eb24 ^

d88232a3 ^



17f83af2 ^
d88232a3 ^




a923ead7 ^




d88232a3 ^
1159f9ec ^
f7819821 ^
1159f9ec ^
23c450bf ^

c1033553 ^
d88232a3 ^
f7819821 ^
d88232a3 ^

f7819821 ^
d88232a3 ^

f7819821 ^
d88232a3 ^
42fd3690 ^

3f77e62a ^
42fd3690 ^



b19e53f9 ^
b19e53f9 ^

3f77e62a ^


17f83af2 ^
3f77e62a ^

23c450bf ^
f7819821 ^
3f77e62a ^
d3eff0a9 ^

42fd3690 ^




23c450bf ^



3f77e62a ^
42fd3690 ^

17f83af2 ^
d3eff0a9 ^

ea87d005 ^
42fd3690 ^

d88232a3 ^

a6791aee ^



ba3f04ea ^
a6791aee ^











1159f9ec ^







d88232a3 ^

a6791aee ^
ea87d005 ^
ba3f04ea ^
a6791aee ^
d621586e ^
d88232a3 ^
42fd3690 ^
d88232a3 ^
d621586e ^




42fd3690 ^

d88232a3 ^


42fd3690 ^

d88232a3 ^
d621586e ^
d88232a3 ^


d88232a3 ^


a6791aee ^
d88232a3 ^




49ae0dd1 ^
d88232a3 ^

a6791aee ^
1159f9ec ^
d88232a3 ^
49ae0dd1 ^





d88232a3 ^

d88232a3 ^




a6791aee ^







ea87d005 ^
a6791aee ^







ea87d005 ^
a6791aee ^












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