Kartik Agaram
c98d4b1c6a
4818
2018-12-02 14:41:21 -08:00
Kartik Agaram
9d27e966b5
4808 - clean up comments in all subx files
2018-11-30 16:45:15 -08:00
Kartik Agaram
ee9a9237d6
4802
...
Some automated commenting cleanup. Still needs more careful manual scanning.
sed -i 's/^# 1-3/# . 1-3/' *.subx */*.subx
sed -i 's/^# op/# . op/' *.subx */*.subx
sed -i 's/# vim/# . . vim/' *.subx */*.subx
sed -i 's/^ # push args/ # . . push args/' *.subx */*.subx
sed -i 's/^ # discard args/ # . . discard args/' *.subx */*.subx
sed -i 's/^ # call/ # . . call/' *.subx */*.subx
sed -i 's/^ # prolog/ # . prolog/' *.subx */*.subx
sed -i 's/^ # epilog/ # . epilog/' *.subx */*.subx
sed -i 's/^ # save registers/ # . save registers/' *.subx */*.subx
sed -i 's/^ # restore registers/ # . restore registers/' *.subx */*.subx
sed -i 's/ operand / register /' *.subx */*.subx
2018-11-30 11:13:36 -08:00
Kartik Agaram
6030d7e2e5
4801
...
Reindent all SubX code to make some room for the new comment style.
2018-11-30 10:54:42 -08:00
Kartik Agaram
e5cbbea435
4780
2018-11-26 00:26:20 -08:00
Kartik Agaram
93be389bef
4731
2018-10-28 12:41:04 -07:00
Kartik Agaram
a9a5718d08
4698
2018-10-14 12:53:50 -07:00
Kartik Agaram
94ad882e82
4668
2018-10-05 21:30:22 -07:00
Kartik Agaram
03d50cc83c
4667
...
Standardize on hyphens in all names.
And we'll use colons for namespacing labels in functions.
2018-10-05 19:49:47 -07:00
Kartik Agaram
ed0e64a981
4662
2018-10-05 10:42:16 -07:00
Kartik Agaram
d383ba7634
4655
2018-10-02 20:58:39 -07:00
Kartik Agaram
d25e51dc0f
4644
2018-10-01 15:53:44 -07:00
Kartik Agaram
1666b12f37
4641
2018-10-01 14:21:27 -07:00
Kartik Agaram
2b51cba67c
4639
2018-10-01 12:28:30 -07:00
Kartik Agaram
1dcd9350ce
4624
...
Start requiring a '-o' flag to designate the output binary when translating.
Things currently get funky if you pass in multiple inputs, but that's ok.
This is the first step to supporting multiple input files for a single
output binary.
2018-09-30 23:12:54 -07:00
Kartik Agaram
bc3e572acd
4518
2018-09-24 23:49:43 -07:00
Kartik Agaram
5347cf8bf4
4517
2018-09-24 23:01:38 -07:00
Kartik K. Agaram
c5d9a32fe6
4516
...
More calling convention tweaks.
Use EBP to get consistently at parameters and locals.
Always put the first function argument closest to EBP.
2018-09-24 22:55:37 -07:00
Kartik Agaram
7e84fc518f
4507
...
New helper: compare a null-terminated string (from argv) with a length-prefixed
string (anywhere else).
As long as ex11 continues to pass we can copy the function and its tests
to other programs.
2018-09-23 20:47:11 -07:00