diff options
author | Kyle Gunger <kgunger12@gmail.com> | 2023-02-21 12:35:19 -0500 |
---|---|---|
committer | Kyle Gunger <kgunger12@gmail.com> | 2023-02-21 12:35:19 -0500 |
commit | 06dfde98d64c04303b78d026e575b088895d5367 (patch) | |
tree | f15acad1ceb5c90b98408dd9c6731483692b4c57 /tnslc/c_wrap.tnsl | |
parent | 1309264425fa72fc7703711cbebabd839c3883cb (diff) |
Fix up add, sub, and set on variables
Diffstat (limited to 'tnslc/c_wrap.tnsl')
-rw-r--r-- | tnslc/c_wrap.tnsl | 6 |
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 ;/ |