about summary refs log tree commit diff stats
path: root/subx/ex2.subx
diff options
context:
space:
mode:
Diffstat (limited to 'subx/ex2.subx')
-rw-r--r--subx/ex2.subx5
1 files changed, 4 insertions, 1 deletions
diff --git a/subx/ex2.subx b/subx/ex2.subx
index de63f12e..4708a8b5 100644
--- a/subx/ex2.subx
+++ b/subx/ex2.subx
@@ -1,8 +1,11 @@
-## add 1 and 1
+## add 1 and 1, and return the result in the exit code
 #
 # To run:
 #   $ subx translate ex2.subx ex2
 #   $ subx run ex2
+# Expected result:
+#   $ echo $?
+#   2
 
 == 0x08048054  # code segment, after leaving room for ELF header
 # opcode        ModR/M                    SIB                   displacement    immediate