diff options
| author | Andreas Kapp Lindquist <alind24@student.sdu.dk> | 2025-09-30 10:19:55 +0200 |
|---|---|---|
| committer | mithe24 <mithe24@student.sdu.dk> | 2025-10-29 13:49:57 +0100 |
| commit | 4f87bb4d0571026f8881dc6559f7b3c1a2ca5dec (patch) | |
| tree | 75d684f33efbaaa51a7d8bb329a66cd138b60244 /src/insertion_sort.s | |
| parent | 940ff2063cc2aabce7c5d949d864b3ff9f87a973 (diff) | |
| download | sorter-4f87bb4d0571026f8881dc6559f7b3c1a2ca5dec.tar.gz sorter-4f87bb4d0571026f8881dc6559f7b3c1a2ca5dec.zip | |
docs(insertion_sort.s)
Diffstat (limited to 'src/insertion_sort.s')
| -rw-r--r-- | src/insertion_sort.s | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/insertion_sort.s b/src/insertion_sort.s index 490d56b..4e7b981 100644 --- a/src/insertion_sort.s +++ b/src/insertion_sort.s @@ -26,9 +26,9 @@ insertion_sort: je end # Jump to end if it is subq $1, %rsi # Decrease size of array - push %rsi + push %rsi # Save array size across recursive call call insertion_sort # Sort recursively - pop %rsi + pop %rsi # Restore array size movq (%rdi, %rsi, 8), %rbp # Save address at A[n] in rbp movq (%rbp, %rdx, 8), %rbx # Save value of A[n] in rbx |