about summary refs log tree commit diff stats
path: root/subx/051test.subx
Commit message (Collapse)AuthorAgeFilesLines
* 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-2/+2
| | | | | Support immediate operands in the data segment in all the ways we support them in the code segment.
* 4961Kartik Agaram2019-02-141-1/+1
|
* 4892Kartik Agaram2018-12-301-0/+3
|
* 4888Kartik Agaram2018-12-291-3/+3
| | | | We only can't use rm32=5 when mod=0. Totally fine when it's mod=1.
* 4847Kartik Agaram2018-12-061-1/+1
|
* 4846Kartik Agaram2018-12-061-1/+3
| | | | | | | | | | | | | | Clean up a few things: a) Call scan-next-byte in hex.subx with the right number of args. Turns out tests continue to work fine if they never use the other args. b) Tear down a test for 'stop' in the right order. Not important since we have no EBP to restore. But can still be misleading. c) Have 'check-ints-equal' return nothing. Handy for it to not mess up EAX. I never use the result anyway, and the name also is imperative suggesting callers won't expect a return value.
* 4808 - clean up comments in all subx filesKartik Agaram2018-11-301-7/+10
|
* 4802Kartik Agaram2018-11-301-17/+17
| | | | | | | | | | | | | | | | 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-53/+53
| | | | Reindent all SubX code to make some room for the new comment style.
* 4780Kartik Agaram2018-11-261-1/+0
|
* 4732Kartik Agaram2018-10-281-4/+3
|
* 4731Kartik Agaram2018-10-281-3/+3
|
* 4716Kartik Agaram2018-10-231-3/+3
|
* 4705Kartik Agaram2018-10-161-1/+1
|
* 4702Kartik Agaram2018-10-161-0/+2
|
* 4699Kartik Agaram2018-10-141-9/+13
|
* 4698Kartik Agaram2018-10-141-1/+1
|
* 4682 - subx: start testing all layers of 'library'Kartik Agaram2018-10-101-0/+11
|
* 4677Kartik Agaram2018-10-101-2/+2
|
* 4667Kartik Agaram2018-10-051-11/+11
| | | | | Standardize on hyphens in all names. And we'll use colons for namespacing labels in functions.
* 4664 - subx: reflect test failures in exit statusKartik Agaram2018-10-051-0/+5
|
* 4662Kartik Agaram2018-10-051-1/+1
|
* 4644Kartik Agaram2018-10-011-3/+3
|
* 4642Kartik Agaram2018-10-011-0/+6
|
* 4638 - extract some common libraries from appsKartik Agaram2018-10-011-0/+59
I'm still trying to figure out what the defaults should be. At the moment you have to explicitly pass in every file you want loaded into the output binary. Maybe that control is a good thing. The examples need no libraries so far.