diff options
| author | Andreas Kapp Lindquist <alind24@student.sdu.dk> | 2025-09-29 22:12:37 +0200 |
|---|---|---|
| committer | mithe24 <mithe24@student.sdu.dk> | 2025-10-29 13:49:57 +0100 |
| commit | 4ab579b1df340eb856ccec5eded06f98906f6a0d (patch) | |
| tree | 30bc8d7b92f885c8b22dba2c45dee4019d792bb6 /src | |
| parent | e068a165e039742c1718ccf70020382896d2bf15 (diff) | |
| download | sorter-4ab579b1df340eb856ccec5eded06f98906f6a0d.tar.gz sorter-4ab579b1df340eb856ccec5eded06f98906f6a0d.zip | |
test(test.s): Created simple test file
Diffstat (limited to 'src')
| -rw-r--r-- | src/test.s | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/test.s b/src/test.s new file mode 100644 index 0000000..0a709e1 --- /dev/null +++ b/src/test.s @@ -0,0 +1,29 @@ +.section .data +elem1: + .byte 3 +elem2: + .byte 2 +elem3: + .byte 1 + +array: + .space 24 + +.section .text +.globl _start +_start: + + movq $elem1, array + movq $elem2, 8+array + movq $elem3, 16+array + + movq $array, %rdi + movq $3, %rsi + movq $0, %rdx + movq $insertion_sort, %rcx + call sorter + + movq $60, %rax + movq $0, %rdx + syscall + |