aboutsummaryrefslogtreecommitdiff
path: root/print_123.s
diff options
context:
space:
mode:
Diffstat (limited to 'print_123.s')
-rw-r--r--print_123.s3
1 files changed, 2 insertions, 1 deletions
diff --git a/print_123.s b/print_123.s
index b87309b..c838d89 100644
--- a/print_123.s
+++ b/print_123.s
@@ -7,6 +7,7 @@
# || -> cont
.thunkcode main
+ needs_alloc $0160
# push a new integer
thunkto %r11, $INT_code, $100
@@ -20,7 +21,7 @@
thunkto %r11, $print, $1, %r11
# push a cont thunk for main_exit and set continuation for main_exit
- thunkto %rsi, $main_exit, $1, %rsi
+ thunkto %rsi, $main_exit, $0
# evaluate into main_exit
enter %r11