about summary refs log tree commit diff stats
path: root/tutorial
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-10-20 14:42:57 -0700
committerKartik K. Agaram <vc@akkartik.com>2021-10-20 14:42:57 -0700
commitb367e7f7f960da0b0159a43e30eb98d635689b27 (patch)
treeab24074e650ae39b78ccfaf05f45fdae555f894e /tutorial
parent3dead5564151b9f3f02cac638b6e526082d9818b (diff)
downloadmu-b367e7f7f960da0b0159a43e30eb98d635689b27.tar.gz
.
Diffstat (limited to 'tutorial')
-rw-r--r--tutorial/index.md8
1 files changed, 8 insertions, 0 deletions
diff --git a/tutorial/index.md b/tutorial/index.md
index 621d507a..4188db1e 100644
--- a/tutorial/index.md
+++ b/tutorial/index.md
@@ -192,3 +192,11 @@ command as often as you like:
 ```
 ./translate tutorial/task5.mu  &&  qemu-system-i386 code.img
 ```
+
+The section on [integer primitives](https://github.com/akkartik/mu/blob/main/mu.md#integer-primitives) shows that Mu consistently follows a few rules:
+* Instructions that write to a register always have an output before the `<-`.
+* Instructions that use an argument in memory always have it as the first
+  inout.
+* Instructions that write to memory have a preposition in their name. Contrast
+  `add` to a register vs `add-to` a memory location, `subtract` from a
+  register vs `subtract-from` a memory location, and so on.