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/insertion_sort.s | |
| parent | 6746b29daa5b26b53d0c3fa3da26a6d54dcc5a73 (diff) | |
| download | sorter-541874c7d91013cda51edf12334890305b3988d5.tar.gz sorter-541874c7d91013cda51edf12334890305b3988d5.zip | |
refactor(src): made sure all function follow calling conventions
Diffstat (limited to 'src/insertion_sort.s')
| -rw-r--r-- | src/insertion_sort.s | 10 |
1 files changed, 1 insertions, 9 deletions
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 |