aboutsummaryrefslogtreecommitdiff
path: root/print_123.s
diff options
context:
space:
mode:
authorMirek Kratochvil <exa.exa@gmail.com>2023-11-01 18:25:26 +0100
committerMirek Kratochvil <exa.exa@gmail.com>2023-11-01 18:25:26 +0100
commit1909e97d4615045e707710a2aaeae8bf702a8355 (patch)
treeacba7fd278ef27dbdb749f936b38a812a056176a /print_123.s
parent32d71ef9f25b4cebb2ae95b4f528bbc02f62ea31 (diff)
parent970ffb4684dbd88bd54e909820bbc5a66a87b18d (diff)
downloaduskel-1909e97d4615045e707710a2aaeae8bf702a8355.tar.gz
uskel-1909e97d4615045e707710a2aaeae8bf702a8355.tar.bz2
Merge branch 'gc-attempt-1'
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