aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/while.sil9
1 files changed, 5 insertions, 4 deletions
diff --git a/examples/while.sil b/examples/while.sil
index fb2778b..08f27f0 100644
--- a/examples/while.sil
+++ b/examples/while.sil
@@ -1,11 +1,12 @@
-Void sleep(Int n) {
- |~ pushI_a 0
+Int sleep(Int n) {
+ |~ push_b 0
|~ ccall sleep "I:I"
- |~ pop_b 1
+ |~ update_b 0 1
}
Void print(Int n) {
- |~ push_a 0
+ |~ create
+ |~ fillI_b 0 0
|~.d 1 0
|~ jsr _print_graph
|~.o 0 0