about summary refs log tree commit diff stats
path: root/apps/ex1.subx
diff options
context:
space:
mode:
Diffstat (limited to 'apps/ex1.subx')
-rw-r--r--apps/ex1.subx18
1 files changed, 0 insertions, 18 deletions
diff --git a/apps/ex1.subx b/apps/ex1.subx
deleted file mode 100644
index d1968415..00000000
--- a/apps/ex1.subx
+++ /dev/null
@@ -1,18 +0,0 @@
-# First program: same as https://www.muppetlabs.com/~breadbox/software/tiny/teensy.html
-# Just return 42.
-#
-# To run:
-#   $ ./bootstrap translate init.linux apps/ex1.subx -o apps/ex1
-#   $ ./bootstrap run apps/ex1
-# Expected result:
-#   $ echo $?
-#   42
-
-== code
-
-Entry:
-# exit(42)
-bb/copy-to-ebx  0x2a/imm32  # 42 in hex
-e8/call  syscall_exit/disp32
-
-# . . vim:nowrap:textwidth=0