From dcc9dd17186907d105cf01358b39e1551c0fc874 Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Mon, 24 Jul 2017 18:22:04 +0200 Subject: Use B-stack for basic arguments (not locals): resolve #9 --- examples/while.sil | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'examples/while.sil') 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 -- cgit v1.2.3