aboutsummaryrefslogtreecommitdiff
path: root/src/main.s
diff options
context:
space:
mode:
authormithe24 <mithe24@student.sdu.dk>2025-10-19 21:18:47 +0200
committermithe24 <mithe24@student.sdu.dk>2025-10-29 13:49:57 +0100
commit88d4c92a5a757ed4ee88373e9ae53bfe27041e7f (patch)
tree6a57def37d03ea76b581310bb14b3e1952d5f8b1 /src/main.s
parent552fefb4e2e17eef67ca5f488c06ec361af1ecf6 (diff)
downloadsorter-88d4c92a5a757ed4ee88373e9ae53bfe27041e7f.tar.gz
sorter-88d4c92a5a757ed4ee88373e9ae53bfe27041e7f.zip
Working qsort I think
So far looks like it is working, cannot be tested with 'test.sh' since quick sort is not a stable sorting algorithm
Diffstat (limited to 'src/main.s')
-rw-r--r--src/main.s2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.s b/src/main.s
index c0d6e85..318bb02 100644
--- a/src/main.s
+++ b/src/main.s
@@ -17,7 +17,7 @@ _start:
movq %rax, %rdi # Select address of array
movq %r15, %rsi # Select length of array
movq $1, %rdx # Sort by key 1
- call insertion_sort # Sort the array
+ call qsort # Sort the array
# Print array
movq %rax, %rdi # Select the pointer to the array