about summary refs log tree commit diff stats
path: root/subx/examples/ex3.k2
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2018-09-22 00:16:21 -0700
committerKartik Agaram <vc@akkartik.com>2018-09-22 00:16:21 -0700
commit08c2f2a5ce0a55c1b33314309ab857d305a0e58b (patch)
treee50605d4c4a11599c8abbc13e58e52da44f1677b /subx/examples/ex3.k2
parent3f8597bc3d44ab26536b080ae00e3b66202137d6 (diff)
downloadmu-08c2f2a5ce0a55c1b33314309ab857d305a0e58b.tar.gz
4587
Diffstat (limited to 'subx/examples/ex3.k2')
-rw-r--r--subx/examples/ex3.k220
1 files changed, 0 insertions, 20 deletions
diff --git a/subx/examples/ex3.k2 b/subx/examples/ex3.k2
deleted file mode 100644
index aa17ac7b..00000000
--- a/subx/examples/ex3.k2
+++ /dev/null
@@ -1,20 +0,0 @@
-fn main [
-  var result/EBX : int
-  result/EBX <- copy 0
-  var counter/ECX : int
-  counter/ECX <- copy 1
-  {
-    compare counter/ECX, 10
-    break-if >
-    result/EBX <- add counter/ECX
-    counter/ECX <- add 1
-    loop
-  }
-  call exit, 1
-]
-
-fn exit x : int [
-  code/EBX <- copy x
-  code/EAX <- copy 1/exit
-  syscall
-]