about summary refs log tree commit diff stats
path: root/subx.md
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2020-07-12 16:37:58 -0700
committerKartik Agaram <vc@akkartik.com>2020-07-12 16:37:58 -0700
commit7817fdb29c46419e22ddcbd9f75a5be6308c9776 (patch)
treed2d9c11588c3392ffb8bd12ed195f194229318e2 /subx.md
parentac8b37f9a8fd653e25425b5a77a7457b9cc05547 (diff)
downloadmu-7817fdb29c46419e22ddcbd9f75a5be6308c9776.tar.gz
6640
Re-sync markdown files with mu-normie fork.
Diffstat (limited to 'subx.md')
-rw-r--r--subx.md26
1 files changed, 13 insertions, 13 deletions
diff --git a/subx.md b/subx.md
index b1ab38bc..bd9f9d1f 100644
--- a/subx.md
+++ b/subx.md
@@ -6,16 +6,16 @@ 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
 the parent shell process:
 
-  ```sh
-  == code
-  Entry:
-    # ebx = 1
-    bb/copy-to-ebx  1/imm32
-    # increment ebx
-    43/increment-ebx
-    # exit(ebx)
-    e8/call  syscall_exit/disp32
-  ```
+```sh
+== code
+Entry:
+  # ebx = 1
+  bb/copy-to-ebx  1/imm32
+  # increment ebx
+  43/increment-ebx
+  # exit(ebx)
+  e8/call  syscall_exit/disp32
+```
 
 ## The syntax of SubX instructions
 
@@ -78,9 +78,9 @@ simpler. It comes from exactly one of the following argument types:
 Putting all this together, here's an example that adds the integer in `eax` to
 the one at address `edx`:
 
-  ```
-  01/add %edx 0/r32/eax
-  ```
+```
+01/add %edx 0/r32/eax
+```
 
 ## The syntax of SubX programs