diff options
| author | mithe24 <mithe24@student.sdu.dk> | 2025-10-19 21:18:47 +0200 |
|---|---|---|
| committer | mithe24 <mithe24@student.sdu.dk> | 2025-10-29 13:49:57 +0100 |
| commit | 88d4c92a5a757ed4ee88373e9ae53bfe27041e7f (patch) | |
| tree | 6a57def37d03ea76b581310bb14b3e1952d5f8b1 /src/main.s | |
| parent | 552fefb4e2e17eef67ca5f488c06ec361af1ecf6 (diff) | |
| download | sorter-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.s | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |