diff options
author | Kartik Agaram <vc@akkartik.com> | 2021-03-29 18:47:52 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2021-03-29 18:47:52 -0700 |
commit | 16f2bd1174632659cbad925f7271cd72feef3522 (patch) | |
tree | d3a729b5cdf4413ae7dfc86e15c1f0a63532b943 /subx.md | |
parent | 386641c0212437e719e6601596da82df1d0969e0 (diff) | |
download | mu-16f2bd1174632659cbad925f7271cd72feef3522.tar.gz |
.
Diffstat (limited to 'subx.md')
-rw-r--r-- | subx.md | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/subx.md b/subx.md index 26f2c4f3..4e28a49c 100644 --- a/subx.md +++ b/subx.md @@ -1,6 +1,6 @@ ## SubX -SubX is a notation for a subset of x86 machine code. [The Mu translator](http://akkartik.github.io/mu/html/apps/mu.subx.html) +SubX is a notation for a subset of x86 machine code. [The Mu translator](http://akkartik.github.io/mu/html/linux/mu.subx.html) is implemented in SubX and also emits SubX code. Here's an example program in SubX that adds 1 and 1 and returns the result to @@ -158,8 +158,8 @@ string literal surrounded by quotes (`"`) in an `imm32` argument. SubX will transparently copy it to the `data` segment and replace it with its address. Strings are the only place where a SubX word is allowed to contain spaces. -That should be enough information for writing SubX programs. The `apps/` -directory provides some fodder for practice in the `apps/ex*.subx` files, +That should be enough information for writing SubX programs. The `linux/` +directory provides some fodder for practice in the `linux/ex*.subx` files, giving a more gradual introduction to SubX features. In particular, you should -work through `apps/factorial4.subx`, which demonstrates all the above ideas in +work through `linux/factorial4.subx`, which demonstrates all the above ideas in concert. |