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/insertion_sort.s | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'src/insertion_sort.s') diff --git a/src/insertion_sort.s b/src/insertion_sort.s index f5c38ad..3048a89 100644 --- a/src/insertion_sort.s +++ b/src/insertion_sort.s @@ -6,17 +6,13 @@ # rsi = number of coordinates n # rdx = index of key to sort by # OUTPUTS : rax = address for sorted A -# CLOBBERS: none +# CLOBBERS: rax, rdx, rdi, rsi, r8, r9, r10, r11 # -------------------------------------------- .section .text .globl insertion_sort .type insertion_sort, @function insertion_sort: # save - push %r8 - push %r9 - push %r10 - push %r11 push %r14 push %r15 @@ -71,8 +67,4 @@ done: # retrieve pop %r15 pop %r14 - pop %r11 - pop %r10 - pop %r9 - pop %r8 ret -- cgit v1.2.3-70-g09d2