diff options
Diffstat (limited to '')
| -rw-r--r-- | src/main.s | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -4,9 +4,11 @@ qsort: .string "qsort" + .section .text .globl _start _start: + cmpq $2, (%rsp) # Check if there are only two arguments jne algorithm_selected # If not, go to algorithm_selected @@ -49,7 +51,7 @@ algorithm_selected: select_insertionsort: movq $insertion_sort, %r14 # Select insertion_sort in r14 jmp the_rest - + select_quicksort: movq $quicksort, %r14 # Select quicksort in r14 jmp the_rest @@ -78,7 +80,6 @@ the_rest: movq $1, %rdi syscall -end: # Exit movq $60, %rax movq $0, %rdi # Exit code 0 |