aboutsummaryrefslogtreecommitdiff
path: root/fibs.s
diff options
context:
space:
mode:
authorMirek Kratochvil <exa.exa@gmail.com>2023-10-31 00:12:51 +0100
committerMirek Kratochvil <exa.exa@gmail.com>2023-10-31 00:12:51 +0100
commit2bc3d9a3815a6cd172b3b4f7696c46a006021b13 (patch)
treebd77783f22f010976af6176336bfc4977987eac7 /fibs.s
parent8504d72bda94c3a1668ebbdd262ae8a4963a23c1 (diff)
downloaduskel-2bc3d9a3815a6cd172b3b4f7696c46a006021b13.tar.gz
uskel-2bc3d9a3815a6cd172b3b4f7696c46a006021b13.tar.bz2
gc kinda almost there
Diffstat (limited to 'fibs.s')
-rw-r--r--fibs.s3
1 files changed, 3 insertions, 0 deletions
diff --git a/fibs.s b/fibs.s
index 3d35544..f008dae 100644
--- a/fibs.s
+++ b/fibs.s
@@ -8,6 +8,7 @@
# | lag1 | lag2 | -> cont
.thunkcode fibs
+ needs_alloc $0140
# next value
thunkto %r11, $plus, $2, 020(%rbp), 030(%rbp)
@@ -28,12 +29,14 @@
# || -> cont
.thunkcode fibs0
+ needs_alloc $0100
thunkto %r12, $INT_code, $1
thunkto %r11, $INT_code, $0
thunkto %rbp, $fibs, $2, %r11, %r12
enter_rbp
.thunkcode main
+ needs_alloc $0160
thunkto %r12, $fibs0, $0
thunkto %r11, $INT_code, $20
thunkto %r11, $list_int_index, $2, %r11, %r12