about summary refs log tree commit diff stats
path: root/subx/examples/ex9.subx
Commit message (Collapse)AuthorAgeFilesLines
* switch to new syntax for segment headers in C++Kartik Agaram2019-05-181-1/+1
|
* 4893Kartik Agaram2018-12-301-2/+2
|
* 4888Kartik Agaram2018-12-291-2/+2
| | | | We only can't use rm32=5 when mod=0. Totally fine when it's mod=1.
* 4847Kartik Agaram2018-12-061-1/+1
|
* 4808 - clean up comments in all subx filesKartik Agaram2018-11-301-5/+6
|
* 4802Kartik Agaram2018-11-301-8/+8
| | | | | | | | | | | | | | | | 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-23/+23
| | | | Reindent all SubX code to make some room for the new comment style.
* 4780Kartik Agaram2018-11-261-0/+1
|
* 4668Kartik Agaram2018-10-051-1/+1
|
* 4667Kartik Agaram2018-10-051-3/+3
| | | | | Standardize on hyphens in all names. And we'll use colons for namespacing labels in functions.
* 4662Kartik Agaram2018-10-051-0/+2
|
* 4644Kartik Agaram2018-10-011-2/+2
|
* 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.
* 4516Kartik K. Agaram2018-09-241-10/+9
| | | | | | | More calling convention tweaks. Use EBP to get consistently at parameters and locals. Always put the first function argument closest to EBP.
* 4591Kartik Agaram2018-09-221-2/+2
|
* 4590Kartik Agaram2018-09-221-1/+1
|
* 4581Kartik Agaram2018-09-211-1/+1
| | | | | | | | | | | | Even more cuddling. We want to keep lines short where the opcode and operands are self-explanatory. If there are any implicit registers, etc., we'll continue to do the table layout. The first two columns look messy now; let's see how this goes. Maybe I'll give up on the tabular layout altogether, just string args with a single space.
* 4575Kartik Agaram2018-09-211-0/+49
| | | | | | | | New example, just to fix in my head how arguments go on the stack. It's possible I'm still confused about the order callers push args in to the stack. But even if this violates the calling convention, it should still run.
* 4530 - create an apps/ directoryKartik Agaram2018-09-011-61/+0
|
* 4529 - move examples to a sub-directoryKartik Agaram2018-09-011-0/+61