From 541874c7d91013cda51edf12334890305b3988d5 Mon Sep 17 00:00:00 2001 From: Andreas Kapp Lindquist Date: Tue, 28 Oct 2025 15:09:05 +0100 Subject: refactor(src): made sure all function follow calling conventions --- src/lib/int2str.s | 5 ++--- src/lib/strcmp.s | 2 +- src/lib/tub2tsv.s | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) (limited to 'src/lib') 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 -- cgit v1.2.3-70-g09d2