about summary refs log tree commit diff stats
path: root/subx/057stop.subx
Commit message (Collapse)AuthorAgeFilesLines
* 4863Kartik Agaram2018-12-101-1/+1
|
* 4846Kartik Agaram2018-12-061-1/+1
| | | | | | | | | | | | | | 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.
* 4832Kartik Agaram2018-12-041-0/+4
| | | | | | Let's start adding ':end' labels in all functions, just because it helps us visualize where function calls end in traces, thanks to the '--map' commandline argument.
* 4808 - clean up comments in all subx filesKartik Agaram2018-11-301-7/+7
|
* 4802Kartik Agaram2018-11-301-32/+32
| | | | | | | | | | | | | | | | 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-135/+135
| | | | Reindent all SubX code to make some room for the new comment style.
* 4788Kartik Agaram2018-11-271-1/+1
|
* 4787Kartik Agaram2018-11-271-3/+10
|
* 4780Kartik Agaram2018-11-261-1/+0
|
* 4760Kartik Agaram2018-11-211-0/+2
|
* 4759Kartik Agaram2018-11-201-2/+2
|
* 4737Kartik Agaram2018-10-301-1/+1
|
* 4731Kartik Agaram2018-10-281-4/+4
|
* 4729Kartik Agaram2018-10-281-2/+2
| | | | | | Start injecting all dependencies in the Crenshaw compiler app. In the process I realized the non-fake code path of 'stop' had a bug.
* 4719 - testable interface wrapping around exit()Kartik Agaram2018-10-241-69/+141
|
* 4713Kartik Agaram2018-10-211-0/+129
Initial sketch of a dependency-injected wrapper around the exit() syscall. I don't have the primitives yet, just a sketch of how they should work -- and a passing test for non-local jumps without support for passing the exit status to the caller.