Overview
| SHA1 Hash: | f8ccd36e2bb526d71cacb19725052a0c04c96415 |
|---|---|
| Date: | 2011-05-31 23:24:25 |
| User: | charleschilders |
| Comment: | assembler: more documentation |
| Timelines: | family | ancestors | descendants | both | trunk |
| Other Links: | files | manifest |
Tags And Properties
- branch=trunk inherited from [dc67bca1f3]
- sym-trunk inherited from [dc67bca1f3]
Changes
[hide diffs]
[patch]Modified langs/assembler.rx from [b2fa33a1470fdb56] to [7e57ef8e846cb215].
@@ -96,68 +96,83 @@ --------- +----------+-----------+------------------------------------------------+ | Name | Stack | Usage | +==========+===========+================================================+ -| nop, | | | +| nop, | ``-`` | Ngaro instruction | ++----------+-----------+------------------------------------------------+ +| lit, | ``-`` | Ngaro instruction | ++----------+-----------+------------------------------------------------+ +| dup, | ``-`` | Ngaro instruction | ++----------+-----------+------------------------------------------------+ +| drop, | ``-`` | Ngaro instruction | ++----------+-----------+------------------------------------------------+ +| swap, | ``-`` | Ngaro instruction | ++----------+-----------+------------------------------------------------+ +| push, | ``-`` | Ngaro instruction | ++----------+-----------+------------------------------------------------+ +| pop, | ``-`` | Ngaro instruction | ++----------+-----------+------------------------------------------------+ +| loop, | ``-`` | Ngaro instruction | ++----------+-----------+------------------------------------------------+ +| jump, | ``-`` | Ngaro instruction | ++----------+-----------+------------------------------------------------+ +| ret, | ``-`` | Ngaro instruction | ++----------+-----------+------------------------------------------------+ +| >jump, | ``-`` | Ngaro instruction | ++----------+-----------+------------------------------------------------+ +| <jump, | ``-`` | Ngaro instruction | ++----------+-----------+------------------------------------------------+ +| !jump, | ``-`` | Ngaro instruction | ++----------+-----------+------------------------------------------------+ +| =jump, | ``-`` | Ngaro instruction | ++----------+-----------+------------------------------------------------+ +| @, | ``-`` | Ngaro instruction | ++----------+-----------+------------------------------------------------+ +| !, | ``-`` | Ngaro instruction | ++----------+-----------+------------------------------------------------+ +| +, | ``-`` | Ngaro instruction | ++----------+-----------+------------------------------------------------+ +| -, | ``-`` | Ngaro instruction | ++----------+-----------+------------------------------------------------+ +| *, | ``-`` | Ngaro instruction | ++----------+-----------+------------------------------------------------+ +| /mod, | ``-`` | Ngaro instruction | ++----------+-----------+------------------------------------------------+ +| and, | ``-`` | Ngaro instruction | ++----------+-----------+------------------------------------------------+ +| or, | ``-`` | Ngaro instruction | ++----------+-----------+------------------------------------------------+ +| xor, | ``-`` | Ngaro instruction | ++----------+-----------+------------------------------------------------+ +| <<, | ``-`` | Ngaro instruction | ++----------+-----------+------------------------------------------------+ +| >>, | ``-`` | Ngaro instruction | ++----------+-----------+------------------------------------------------+ +| 0; | ``-`` | Ngaro instruction | ++----------+-----------+------------------------------------------------+ +| 1+, | ``-`` | Ngaro instruction | ++----------+-----------+------------------------------------------------+ +| 1-, | ``-`` | Ngaro instruction | ++----------+-----------+------------------------------------------------+ +| in, | ``-`` | Ngaro instruction | ++----------+-----------+------------------------------------------------+ +| out, | ``-`` | Ngaro instruction | +----------+-----------+------------------------------------------------+ -| lit, | | | +| wait, | ``-`` | Ngaro instruction | +----------+-----------+------------------------------------------------+ -| dup, | | | -+----------+-----------+------------------------------------------------+ -| drop, | | | +| :main | ``-`` | Main entry point | +----------+-----------+------------------------------------------------+ -| swap, | | | -+----------+-----------+------------------------------------------------+ -| push, | | | -+----------+-----------+------------------------------------------------+ -| pop, | | | +| # | n- | Compile a number as a literal | +----------+-----------+------------------------------------------------+ -| loop, | | | -+----------+-----------+------------------------------------------------+ -| jump, | | | -+----------+-----------+------------------------------------------------+ -| ret, | | | -+----------+-----------+------------------------------------------------+ -| >jump, | | | -+----------+-----------+------------------------------------------------+ -| <jump, | | | -+----------+-----------+------------------------------------------------+ -| !jump, | | | +| __# | $- | Prefix; compile a number as a literal | +----------+-----------+------------------------------------------------+ -| =jump, | | | +| $, | $- | Compile a string to the target buffer | +----------+-----------+------------------------------------------------+ -| @, | | | +| __: | $- | Prefix; create a label | +----------+-----------+------------------------------------------------+ -| !, | | | -+----------+-----------+------------------------------------------------+ -| +, | | | -+----------+-----------+------------------------------------------------+ -| -, | | | -+----------+-----------+------------------------------------------------+ -| *, | | | -+----------+-----------+------------------------------------------------+ -| /mod, | | | -+----------+-----------+------------------------------------------------+ -| and, | | | -+----------+-----------+------------------------------------------------+ -| or, | | | -+----------+-----------+------------------------------------------------+ -| xor, | | | -+----------+-----------+------------------------------------------------+ -| <<, | | | -+----------+-----------+------------------------------------------------+ -| >>, | | | -+----------+-----------+------------------------------------------------+ -| 0; | | | -+----------+-----------+------------------------------------------------+ -| 1+, | | | -+----------+-----------+------------------------------------------------+ -| 1-, | | | -+----------+-----------+------------------------------------------------+ -| in, | | | -+----------+-----------+------------------------------------------------+ -| out, | | | +| call | "- | Compile a call to a label | +----------+-----------+------------------------------------------------+ -| wait, | | | +| jump | "- | Compile a jump to a label | +----------+-----------+------------------------------------------------+ + }doc