about summary refs log tree commit diff stats
path: root/subx/examples/ex11.subx
Commit message (Collapse)AuthorAgeFilesLines
* 5102Kartik Agaram2019-04-161-2/+2
|
* 5084Kartik Agaram2019-04-111-1/+1
|
* 5037Kartik Agaram2019-03-291-2/+2
|
* 5011Kartik Agaram2019-03-201-1/+1
| | | | | | | New convention: compare 'with' for asymmetric comparisons (greater or lesser than), and compare 'and' for symmetric comparisons. Worth making this distinction even though the opcodes are identical; when we compare 'with', the order of operands is significant.
* 5009Kartik Agaram2019-03-201-1/+1
|
* 4981 - no, go back to 3 phasesKartik Agaram2019-02-181-1/+1
| | | | | | | | | | | | | Considering how much trouble a merge phase would be (commit 4978), it seems simpler to just add the extra syntax for controlling the entry point of the generated ELF binary. But I wouldn't have noticed this if I hadn't taken the time to write out the commit messages of 4976 and 4978. Even if we happened to already have linked list primitives built, this may still be a good idea considering that I'm saving quite a lot of code in duplicated entrypoints.
* 4973Kartik Agaram2019-02-151-1/+1
| | | | | Support immediate operands in the data segment in all the ways we support them in the code segment.
* 4963Kartik Agaram2019-02-141-3/+3
|
* 4961Kartik Agaram2019-02-141-64/+71
|
* 4893Kartik Agaram2018-12-301-2/+2
|
* 4888Kartik Agaram2018-12-291-8/+8
| | | | We only can't use rm32=5 when mod=0. Totally fine when it's mod=1.
* 4881Kartik Agaram2018-12-281-1/+1
|
* 4847Kartik Agaram2018-12-061-1/+1
|
* 4819Kartik Agaram2018-12-021-3/+3
|
* 4818Kartik Agaram2018-12-021-2/+2
|
* 4808 - clean up comments in all subx filesKartik Agaram2018-11-301-19/+19
|
* 4802Kartik Agaram2018-11-301-71/+71
| | | | | | | | | | | | | | | | 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
* 4801Kartik Agaram2018-11-301-222/+222
| | | | Reindent all SubX code to make some room for the new comment style.
* 4780Kartik Agaram2018-11-261-1/+1
|
* 4731Kartik Agaram2018-10-281-3/+3
|
* 4698Kartik Agaram2018-10-141-3/+3
|
* 4668Kartik Agaram2018-10-051-9/+9
|
* 4667Kartik Agaram2018-10-051-73/+74
| | | | | Standardize on hyphens in all names. And we'll use colons for namespacing labels in functions.
* 4662Kartik Agaram2018-10-051-1/+1
|
* 4655Kartik Agaram2018-10-021-2/+2
|
* 4644Kartik Agaram2018-10-011-27/+27
|
* 4641Kartik Agaram2018-10-011-52/+53
|
* 4639Kartik Agaram2018-10-011-3/+3
|
* 4624Kartik Agaram2018-09-301-1/+1
| | | | | | | | 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.
* 4518Kartik Agaram2018-09-241-9/+41
|
* 4517Kartik Agaram2018-09-241-4/+4
|
* 4516Kartik K. Agaram2018-09-241-32/+44
| | | | | | | More calling convention tweaks. Use EBP to get consistently at parameters and locals. Always put the first function argument closest to EBP.
* 4507Kartik Agaram2018-09-231-0/+304
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.