aboutsummaryrefslogtreecommitdiffstats
path: root/src/x86_64/postlude.asm
diff options
context:
space:
mode:
Diffstat (limited to 'src/x86_64/postlude.asm')
-rw-r--r--src/x86_64/postlude.asm8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/x86_64/postlude.asm b/src/x86_64/postlude.asm
new file mode 100644
index 0000000..139c4e1
--- /dev/null
+++ b/src/x86_64/postlude.asm
@@ -0,0 +1,8 @@
1 ;; return the last value in the stack
2 pop rdi
3 call printdln
4
5 ; exit syscall
6 mov rax, 60
7 xor rdi, rdi
8 syscall