ee9a9237d6
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 |
||
---|---|---|
.. | ||
Readme.md | ||
ex1 | ||
ex1.subx | ||
ex2 | ||
ex2.subx | ||
ex3 | ||
ex3.subx | ||
ex4 | ||
ex4.subx | ||
ex5 | ||
ex5.subx | ||
ex6 | ||
ex6.subx | ||
ex7 | ||
ex7.subx | ||
ex8 | ||
ex8.subx | ||
ex9 | ||
ex9.subx | ||
ex10 | ||
ex10.subx | ||
ex11 | ||
ex11.subx | ||
ex12 | ||
ex12.subx |
Readme.md
Small example programs, each with a simple pedagogical goal.
They also help to validate SubX instruction semantics against native x86 hardware. For example, loading a single byte to a register would for some time clear the rest of the register. This behavior was internally consistent with unit tests. It took running an example binary natively to catch the discrepancy.