aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Kapp Lindquist <alind24@student.sdu.dk>2025-09-29 22:12:37 +0200
committermithe24 <mithe24@student.sdu.dk>2025-10-29 13:49:57 +0100
commit4ab579b1df340eb856ccec5eded06f98906f6a0d (patch)
tree30bc8d7b92f885c8b22dba2c45dee4019d792bb6
parente068a165e039742c1718ccf70020382896d2bf15 (diff)
downloadsorter-4ab579b1df340eb856ccec5eded06f98906f6a0d.tar.gz
sorter-4ab579b1df340eb856ccec5eded06f98906f6a0d.zip
test(test.s): Created simple test file
-rw-r--r--src/test.s29
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
+