summaryrefslogtreecommitdiffstats
path: root/syscall.s
diff options
context:
space:
mode:
authorverdant <im@verdant.ee>2026-06-01 20:44:58 +0800
committerverdant <im@verdant.ee>2026-06-01 20:44:58 +0800
commit126762cc9b3322d724102ebd94ff8d4e2311c150 (patch)
treeeab28df1fcaa7465bd82f735b1bfba3a316ea491 /syscall.s
downloadno-stdlib-helloworld-126762cc9b3322d724102ebd94ff8d4e2311c150.tar.gz
no-stdlib-helloworld-126762cc9b3322d724102ebd94ff8d4e2311c150.zip
Initial commit
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