diff options
| author | Andreas Kapp Lindquist <andkaplin05@gmail.com> | 2025-10-28 15:09:05 +0100 |
|---|---|---|
| committer | mithe24 <mithe24@student.sdu.dk> | 2025-10-29 13:49:57 +0100 |
| commit | 541874c7d91013cda51edf12334890305b3988d5 (patch) | |
| tree | a88ac545bd9986ba4380bf561156daee3eba31b2 /src/lib | |
| parent | 6746b29daa5b26b53d0c3fa3da26a6d54dcc5a73 (diff) | |
| download | sorter-541874c7d91013cda51edf12334890305b3988d5.tar.gz sorter-541874c7d91013cda51edf12334890305b3988d5.zip | |
refactor(src): made sure all function follow calling conventions
Diffstat (limited to '')
| -rw-r--r-- | src/lib/int2str.s | 5 | ||||
| -rw-r--r-- | src/lib/strcmp.s | 2 | ||||
| -rw-r--r-- | src/lib/tub2tsv.s | 2 |
3 files changed, 4 insertions, 5 deletions
diff --git a/src/lib/int2str.s b/src/lib/int2str.s index 82a2aaa..1e9801b 100644 --- a/src/lib/int2str.s +++ b/src/lib/int2str.s @@ -1,12 +1,11 @@ # -------------------------------------------- # FUNCTION: int2str -# PURPOSE : Convert a 64 bit integer into ascii -# into ASCII encoding +# PURPOSE : Convert a 64 bit integer into ASCII # INPUTS : rdi = 64 bit integer # rsi = address of buffer # OUTPUTS : rax = address of string (points into the provided buffer) # rdx = length of string -# CLOBBERS: +# CLOBBERS: rax, rcx, rdi, rsi, r8, r9, r10 # -------------------------------------------- .section .text .globl int2str diff --git a/src/lib/strcmp.s b/src/lib/strcmp.s index c24b5b5..d495a91 100644 --- a/src/lib/strcmp.s +++ b/src/lib/strcmp.s @@ -5,7 +5,7 @@ # INPUTS : rdi = address of first string # rsi = address of second string # OUTPUTS : rax = 1 if equals else 0 -# CLOBBERS: +# CLOBBERS: rax, rdi, rsi, r8, r9 # -------------------------------------------- .section .text .globl strcmp diff --git a/src/lib/tub2tsv.s b/src/lib/tub2tsv.s index 558c51e..f2f6ecf 100644 --- a/src/lib/tub2tsv.s +++ b/src/lib/tub2tsv.s @@ -6,7 +6,7 @@ # rsi = number of coordinates # OUTPUTS : rax = address to string of tab seperated values # rdx = number of bytes -# CLOBBERS: +# CLOBBERS: rax, rcx, rdx, rsi, rdi # -------------------------------------------- .section .text .globl tub2tsv |