about summary refs log tree commit diff stats
path: root/subx
Commit message (Collapse)AuthorAgeFilesLines
* 4450Kartik Agaram2018-07-302-0/+31
|
* 4449Kartik Agaram2018-07-284-19/+14
|
* 4448Kartik Agaram2018-07-271-4/+56
|
* 4446Kartik Agaram2018-07-277-49/+55
|
* 4445 - support labelsKartik Agaram2018-07-274-31/+102
|
* 4444Kartik Agaram2018-07-276-29/+40
| | | | More tracing reorg.
* 4443Kartik Agaram2018-07-271-5/+9
|
* 4442Kartik Agaram2018-07-2711-93/+93
| | | | Clean up trace levels everywhere in SubX.
* 4441Kartik Agaram2018-07-271-4/+4
|
* 4440Kartik Agaram2018-07-271-0/+2
|
* 4439Kartik Agaram2018-07-271-8/+5
|
* 4438Kartik Agaram2018-07-271-1/+1
|
* 4437 - support for labels is half-doneKartik Agaram2018-07-272-0/+97
|
* 4436Kartik Agaram2018-07-271-2/+8
|
* 4435 - make instruction packing less strictKartik Agaram2018-07-272-1/+26
| | | | | | Now it will pass labels straight through. But we may get more confusing error messages in later passes in some situations.
* 4434Kartik Agaram2018-07-2711-197/+209
| | | | | | | | Key core data structures by hex bytes in text rather than opcode numbers. Saves us round trips of having to parse and reparse strings, and also allows us to more easily ignore unexpected non-hex words in each transform. We'll use this ability next when we start inserting labels.
* 4433Kartik Agaram2018-07-271-3/+3
|
* 4432Kartik Agaram2018-07-263-9/+9
| | | | | Good idea from @tekknolagi: make more explicit that the first segment is code.
* 4431 - operate exclusively in hexKartik Agaram2018-07-267-15/+13
| | | | | | | | | Was confusing having numbers without an explicit base sometimes be hex and sometimes not, based on their metadata. By convention I don't bother with the '0x' for instructions, or for single-digit numbers that are equal to their decimal representation. But I could and it would still work.
* 4430Kartik Agaram2018-07-263-26/+26
|
* 4429 - syntax checking for multi-byte opcodesKartik Agaram2018-07-261-2/+49
| | | | We don't have any supported 3-byte opcodes at the moment.
* 4427 - support for '--trace' argvKartik Agaram2018-07-262-11/+49
| | | | This ports commit 4421 to the subx/ program.
* 4426 - error on unrecognized sub-commandsKartik Agaram2018-07-264-2/+13
|
* 4425Kartik Agaram2018-07-261-1/+4
| | | | Better name for a layer.
* 4424Kartik Agaram2018-07-267-71/+70
| | | | Clean up format of example programs.
* Use semicolons instead of commas for sequencingMaxwell Bernstein2018-07-261-14/+28
|
* 4423Kartik Agaram2018-07-261-8/+5
| | | | Silence some messages to the console. Fixes #12.
* 4420Kartik Agaram2018-07-261-6/+6
|
* 4419Kartik Agaram2018-07-261-2/+2
| | | | Unshadow variable. Thanks Max Bernstein for pointing this out.
* 4416 - start collecting traces in runsKartik Agaram2018-07-261-0/+1
| | | | | | To see traces on stdout, set the global `Dump_trace` to true. Thanks Max Bernstein for the feedback.
* Update dependency in ReadmeMax Bernstein2018-07-251-2/+2
|
* 4415Kartik Agaram2018-07-251-3/+7
|
* 4414 - subx: syntax checkingKartik Agaram2018-07-2510-121/+920
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a large patch, and there's a few things wrong with it: a) Helpers are incredibly messy. I want to use has_metadata in layer 24, but can't since it also does error checking. There must be a better basis set of primitives for managing metadata. b) Layer 22 introduces operands for checking, but programs with operands don't actually run until layer 24. So I can't write non-error scenarios in layer 22. That seems ugly. But if I try to introduce layer 24 first there's nothing left to check after it. I *could* play tricks with ordering layers vs transforms. Mu does that a bit, but it becomes hard to mess with, so I'm trying to avoid that. My current plan is for layers within an "abstraction level" to be run in order. Higher layers will necessarily need to come before lower ones. But hopefully this level of hierarchy will help manage the chaos. c) The check for whether an instruction is all hex bytes makes me nervous. I do want to check that an instruction that's just: cd tells the programmer that an operand is missing. The check I currently have is likely not perfectly correct. I *could* put layer 25 in its own commit. But I guess I'm not doing that now. We have a new example program: hello world!
* 4413Kartik Agaram2018-07-253-6/+4
| | | | | Never mind, let's drop unused/vestigial altogether. Use absence of names to signal unused arguments.
* 4412Kartik Agaram2018-07-251-1/+1
| | | | Drop names of unused arguments.
* 4411Kartik Agaram2018-07-253-5/+9
| | | | Port commit 4235 to subx.
* 4410Kartik Agaram2018-07-251-145/+0
| | | | | Temporarily delete support for /imm tags. We'll bring it back momentarily in a totally different way.
* 4409Kartik Agaram2018-07-253-15/+41
| | | | | | Word-wrap online help. Fixes #8.
* 4407 - error message on unimplemented syscallsKartik Agaram2018-07-251-0/+2
| | | | Fixes #9.
* 4403Kartik Agaram2018-07-251-0/+2
| | | | | | Couple of improvements for the tangle/ directory: a) Start running tangle unit tests at build time again. b) Option to print out test names as they run, just like in top-level.
* 4400 - fix a couple of warningsKartik Agaram2018-07-252-3/+2
| | | | Thanks Max Bernstein. Fixes #7.
* 4398Kartik Agaram2018-07-241-1/+1
|
* 4397 - temporarily revert syntax checksKartik Agaram2018-07-242-587/+61
| | | | | | | | | I accidentally published commit 4387, which is broken; most example files are untranslateable. I spent a while trying to push on through, but packing operands correctly into bytes has been surprisingly difficult. Fixing the repo without further delay.
* 4396Kartik Agaram2018-07-244-4/+22
| | | | | | Fix ex4 binary, which has been corrupted in the repo since commit 4356. In this time it hasn't changed further. The correct version added here is also the file that should have been committed then.
* 4395Kartik Agaram2018-07-244-10/+64
|
* 4394Kartik Agaram2018-07-241-2/+2
|
* 4393 - undo 4362Kartik Agaram2018-07-241-1/+0
| | | | Why did I have this?
* 4392Kartik Agaram2018-07-244-0/+16
|
* 4391 - checks for modrm-based instructionsKartik Agaram2018-07-232-62/+146
|
* 4390 - check for instruction operand overflowKartik Agaram2018-07-233-13/+111
|
mework' href='/akkartik/text.love/commit/app.lua?id=f421e1daa52a52956f40b3ee6d8b527ba1c30d5a'>f421e1d ^
6b10c94 ^
f421e1d ^











ca4ad8a ^










3850fba ^

7e97a2a ^
ca4ad8a ^

89b30a6 ^
856c512 ^
7e97a2a ^
856c512 ^





a603847 ^
876d629 ^
a603847 ^

7e97a2a ^



ca4ad8a ^
51f4f13 ^
7e97a2a ^
51f4f13 ^

7e97a2a ^
51f4f13 ^


ca4ad8a ^






2b3e09c ^
ca4ad8a ^



059efba ^
2b3e09c ^
1326914 ^
059efba ^
2b3e09c ^
1326914 ^
ca4ad8a ^






059efba ^

ca4ad8a ^
059efba ^



cfdac28 ^

059efba ^





1326914 ^

ca4ad8a ^














ca4ad8a ^





87ea2af ^


ca4ad8a ^





bcd7f6b ^



31266e2 ^










bcd7f6b ^




87ea2af ^







ca4ad8a ^


3be4136 ^
75ec5c9 ^
f421e1d ^
3be4136 ^
f421e1d ^
3be4136 ^
f421e1d ^



3be4136 ^
75ec5c9 ^
95be13f ^


37f1313 ^



cfdac28 ^




26640c9 ^



cfdac28 ^


c2eee64 ^



cfdac28 ^


73cc120 ^



ca4ad8a ^
f421e1d ^
ca4ad8a ^

fa103ca ^

2a0a770 ^


f2299cb ^
2a0a770 ^

f2299cb ^
eae5c95 ^
2a0a770 ^


f82c0de ^

9949535 ^

f421e1d ^



48c05aa ^
f421e1d ^

9949535 ^












48c05aa ^
9949535 ^
f421e1d ^



fc9490c ^

f421e1d ^
fa103ca ^
856c512 ^
f421e1d ^
fa103ca ^
1326914 ^

856c512 ^


2b3e09c ^
059efba ^




f421e1d ^
287050d ^



f421e1d ^
f82c0de ^







fdb35ce ^
f82c0de ^
0016d66 ^
bcd7f6b ^











f82c0de ^







fdb35ce ^
f82c0de ^
0016d66 ^
790b7f1 ^
bcd7f6b ^


790b7f1 ^
bcd7f6b ^




0016d66 ^
bcd7f6b ^
f82c0de ^
445ce2d ^
87ea2af ^

aa9a0b0 ^
f82c0de ^

7e97a2a ^


9949535 ^
059efba ^



f421e1d ^
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
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532