about summary refs log tree commit diff stats
path: root/subx/ex3.subx
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2018-07-24 20:39:59 -0700
committerKartik Agaram <vc@akkartik.com>2018-07-24 20:39:59 -0700
commitd1e2b0aa5b52ac63cbb92d1f1a70cb510ff970fb (patch)
tree05e4f4af116202014e20f35232c82a269bd1f4ab /subx/ex3.subx
parentd57d39cb3f867d6e33ffa8e4cdc7d0ca749cb75c (diff)
downloadmu-d1e2b0aa5b52ac63cbb92d1f1a70cb510ff970fb.tar.gz
4396
Fix ex4 binary, which has been corrupted in the repo since commit 4356.
In this time it hasn't changed further. The correct version added here
is also the file that should have been committed then.
Diffstat (limited to 'subx/ex3.subx')
-rw-r--r--subx/ex3.subx5
1 files changed, 4 insertions, 1 deletions
diff --git a/subx/ex3.subx b/subx/ex3.subx
index 00ca234f..8560167d 100644
--- a/subx/ex3.subx
+++ b/subx/ex3.subx
@@ -1,8 +1,11 @@
-## add the first 10 numbers
+## add the first 10 numbers, and return the result in the exit code
 #
 # To run:
 #   $ subx translate ex3.subx ex3
 #   $ subx run ex3
+# Expected result:
+#   $ echo $?
+#   55
 
 == 0x08048054  # code segment, after leaving room for ELF header
 # opcode        ModR/M                    SIB                   displacement    immediate