aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/insertion_sort.s2
-rw-r--r--src/main.s2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/insertion_sort.s b/src/insertion_sort.s
index ed4ade2..359e39f 100644
--- a/src/insertion_sort.s
+++ b/src/insertion_sort.s
@@ -69,4 +69,4 @@ done:
pop %r10
pop %r9
pop %r8
- ret
+ ret \ No newline at end of file
diff --git a/src/main.s b/src/main.s
index 30bbf9b..56b682c 100644
--- a/src/main.s
+++ b/src/main.s
@@ -15,7 +15,7 @@ _start:
movq %rax, %rdi # Select address of array
movq %r15, %rsi # Select length of array
- movq $0, %rdx # Sort by key 0
+ movq $1, %rdx # Sort by key 1
call insertion_sort # Sort the array
# Print array