diff options
| -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 + |