summaryrefslogtreecommitdiffstats
path: root/syscall.s
diff options
context:
space:
mode:
Diffstat (limited to 'syscall.s')
-rw-r--r--syscall.s14
1 files changed, 14 insertions, 0 deletions
diff --git a/syscall.s b/syscall.s
new file mode 100644
index 0000000..cf3cacb
--- /dev/null
+++ b/syscall.s
@@ -0,0 +1,14 @@
+.intel_syntax noprefix
+
+.global write
+.global exit
+
+
+write:
+ mov rax, 1
+ syscall
+ ret
+
+exit:
+ mov rax, 60
+ syscall