about summary refs log tree commit diff stats
path: root/translate_subx_emulated
diff options
context:
space:
mode:
Diffstat (limited to 'translate_subx_emulated')
-rwxr-xr-xtranslate_subx_emulated26
1 files changed, 18 insertions, 8 deletions
diff --git a/translate_subx_emulated b/translate_subx_emulated
index 85b56436..26dd5364 100755
--- a/translate_subx_emulated
+++ b/translate_subx_emulated
@@ -3,27 +3,37 @@
 #
 # This script uses emulation, so it does not require x86 or Linux. However it
 # is slow.
+#
+# A couple of gotchas:
+# * Many phases here have no error-checking. Perhaps I should use a
+#   version of translate_subx_debug for baremetal.
+# * Don't pass in numbered .subx files without translated .mu files. Our test
+#   harness is in test.mu, and only Mu programs can run tests in baremetal.
+#
+# The top level is in general not as rigorous about avoiding dependency cycles
+# as the lower-level tools in linux/
 
 set -e
 set -v
 
-cat $*            |linux/bootstrap/bootstrap run linux/braces             > a.braces
+cat $*            |linux/bootstrap/bootstrap run linux/braces                         > a.braces
 
-cat a.braces      |linux/bootstrap/bootstrap run linux/calls              > a.calls
+cat a.braces      |linux/bootstrap/bootstrap run linux/calls                          > a.calls
 
-cat a.calls       |linux/bootstrap/bootstrap run linux/sigils             > a.sigils
+cat a.calls       |linux/bootstrap/bootstrap run linux/sigils                         > a.sigils
 
-cat a.sigils      |linux/bootstrap/bootstrap run linux/tests              > a.tests
+cat a.sigils      |linux/bootstrap/bootstrap run linux/tests                          > a.tests
 
 # no assort since baremetal SubX doesn't have segments yet
 
-cat a.tests       |linux/bootstrap/bootstrap run linux/dquotes            > a.dquotes
+cat a.tests       |linux/bootstrap/bootstrap run linux/dquotes                        > a.dquotes
 
-cat a.dquotes     |linux/bootstrap/bootstrap run linux/pack               > a.pack
+cat a.dquotes     |linux/bootstrap/bootstrap run linux/pack                           > a.pack
 
-cat a.pack        |linux/bootstrap/bootstrap run linux/survey_baremetal   > a.survey
+cat a.pack        |linux/bootstrap/bootstrap linux/survey_baremetal   > labels
+cat a.pack        |linux/bootstrap/bootstrap linux/labels_baremetal     labels        > a.survey
 
-cat a.survey      |linux/bootstrap/bootstrap run linux/hex                > a.bin
+cat a.survey      |linux/bootstrap/bootstrap run linux/hex                            > a.bin
 
 # Create code.img containing a.bin
 dd if=/dev/zero of=code.img count=20160  # 512-byte sectors, so 10MB
bx?h=hlt&id=e9661581f092f3e210b7bd900af058d8b8c4369e'>^
21cb677f ^
d20fbf71 ^









































1639687b ^

d20fbf71 ^

1639687b ^


21cb677f ^
6030d7e2 ^
1639687b ^
6030d7e2 ^
33352536 ^




6030d7e2 ^
7a583220 ^
33352536 ^

aff782c4 ^
33352536 ^







d20fbf71 ^





71eb22a5 ^
33352536 ^
71eb22a5 ^
33352536 ^
d20fbf71 ^

71eb22a5 ^
33352536 ^
71eb22a5 ^
33352536 ^
d20fbf71 ^
21cb677f ^
d20fbf71 ^

db268970 ^
33352536 ^
db268970 ^
33352536 ^
db268970 ^
33352536 ^
d20fbf71 ^
db268970 ^
33352536 ^
db268970 ^
33352536 ^
d20fbf71 ^

33352536 ^
d20fbf71 ^

33352536 ^
d20fbf71 ^
ee9a9237 ^
33352536 ^



7a583220 ^
33352536 ^

6030d7e2 ^
d11372f6 ^
9d27e966 ^
d11372f6 ^
03d50cc8 ^
33352536 ^
ee9a9237 ^
6030d7e2 ^

ee9a9237 ^
71ee78f2 ^
ee9a9237 ^
33352536 ^

ee9a9237 ^
6030d7e2 ^

33352536 ^
ee9a9237 ^
6030d7e2 ^
ee9a9237 ^
33352536 ^
6030d7e2 ^
d11372f6 ^
03d50cc8 ^
33352536 ^
ee9a9237 ^
6030d7e2 ^

ee9a9237 ^
71ee78f2 ^
ee9a9237 ^
33352536 ^

ee9a9237 ^
6030d7e2 ^

33352536 ^
ee9a9237 ^
6030d7e2 ^
ee9a9237 ^
33352536 ^
6030d7e2 ^
d11372f6 ^
03d50cc8 ^
33352536 ^
ee9a9237 ^
6030d7e2 ^

ee9a9237 ^
71ee78f2 ^
ee9a9237 ^
33352536 ^

ee9a9237 ^
6030d7e2 ^

33352536 ^
ee9a9237 ^
6030d7e2 ^
ee9a9237 ^
33352536 ^
6030d7e2 ^
d11372f6 ^
03d50cc8 ^
33352536 ^
ee9a9237 ^
6030d7e2 ^

ee9a9237 ^
71ee78f2 ^
ee9a9237 ^
33352536 ^

ee9a9237 ^
6030d7e2 ^

33352536 ^
ee9a9237 ^
6030d7e2 ^
ee9a9237 ^
33352536 ^
6030d7e2 ^
ed0e64a9 ^
0b2d2d97 ^
71eb22a5 ^
7a583220 ^
33352536 ^

0b2d2d97 ^
33352536 ^
71eb22a5 ^
0b2d2d97 ^
33352536 ^

0b2d2d97 ^


33352536 ^

0b2d2d97 ^
33352536 ^
0b2d2d97 ^
33352536 ^
0b2d2d97 ^


33352536 ^
8d543783 ^
0b2d2d97 ^
33352536 ^
7a583220 ^
33352536 ^

0b2d2d97 ^


8d543783 ^

0b2d2d97 ^



8d543783 ^
0b2d2d97 ^
33352536 ^
0b2d2d97 ^

ee9a9237 ^
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