summaryrefslogtreecommitdiff
path: root/tnslc/c_wrap.tnsl
diff options
context:
space:
mode:
authorKyle Gunger <kgunger12@gmail.com>2023-02-21 12:35:19 -0500
committerKyle Gunger <kgunger12@gmail.com>2023-02-21 12:35:19 -0500
commit06dfde98d64c04303b78d026e575b088895d5367 (patch)
treef15acad1ceb5c90b98408dd9c6731483692b4c57 /tnslc/c_wrap.tnsl
parent1309264425fa72fc7703711cbebabd839c3883cb (diff)
Fix up add, sub, and set on variables
Diffstat (limited to 'tnslc/c_wrap.tnsl')
-rw-r--r--tnslc/c_wrap.tnsl6
1 files changed, 3 insertions, 3 deletions
diff --git a/tnslc/c_wrap.tnsl b/tnslc/c_wrap.tnsl
index b9b96eb..f35b808 100644
--- a/tnslc/c_wrap.tnsl
+++ b/tnslc/c_wrap.tnsl
@@ -8,7 +8,7 @@
asm "mov r8, 0"
asm "mov r9, 0"
asm "mov r10, 0"
- asm "call malloc"
+ asm "call malloc wrt ..got"
# Set out to the returned value
# (The compiler assignes spaces sequentially, and we have a uint in r8)
asm "mov r9, rax"
@@ -26,7 +26,7 @@
asm "mov r9, 0"
asm "mov r10, 0"
# Do call
- asm "call realloc"
+ asm "call realloc wrt ..got"
# Set out to the returned value
# (The compiler assignes spaces sequentially. We have a ptr in r8, and a uint in r9)
asm "mov r10, rax"
@@ -43,7 +43,7 @@
asm "mov r9, 0"
asm "mov r10, 0"
# do call
- asm "call free"
+ asm "call free wrt ..got"
# there's no more to do 'cause free returns nothing
;/