diff options
| author | mithe24 <mithe24@student.sdu.dk> | 2025-10-20 14:01:36 +0200 |
|---|---|---|
| committer | mithe24 <mithe24@student.sdu.dk> | 2025-10-29 13:49:57 +0100 |
| commit | 28d7743d86ea35a37366ffe38b35674014e3854a (patch) | |
| tree | 818a0d7dc39bf4dd8e62853a594dd2817b9ed87b /src | |
| parent | 3bf023a7efbe429c717ee6a1c3ead36bc4678f78 (diff) | |
| download | sorter-28d7743d86ea35a37366ffe38b35674014e3854a.tar.gz sorter-28d7743d86ea35a37366ffe38b35674014e3854a.zip | |
This is leftover trash
Diffstat (limited to 'src')
| -rw-r--r-- | src/sorter.s | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/src/sorter.s b/src/sorter.s deleted file mode 100644 index ba232fe..0000000 --- a/src/sorter.s +++ /dev/null @@ -1,39 +0,0 @@ -# -------------------------------------------- -# FUNCTION: sorter -# PURPOSE : Sorts array A, with references to arrays A_i, based on the given -# key in A_i, address and size of A, and an address of a sorting algorithm to be -# used -# INPUTS : rdi = address for A -# rsi = length of A in 64 bit chunks -# rdx = index of key to sort by -# rcx = address of sorting algorithm -# OUTPUTS : rax = address for sorted A -# CLOBBERS: none -# NOTES : Preserves all registers -# -------------------------------------------- -.section .text -.globl sorter -.type sorter, @function -sorter: - # Save registers - push %rbx - push %rbp - push %r12 - push %r13 - push %r14 - push %r15 - - # rdi is the addres of a - # rsi is the length of a - # rdx is the index of the key - call *%rcx # Sort the array (* is indirect call) - - # Restore registers - pop %r15 - pop %r14 - pop %r13 - pop %r12 - pop %rbp - pop %rbx - - ret |