aboutsummaryrefslogtreecommitdiff
path: root/libc/crt/crt0.asm
diff options
context:
space:
mode:
authorMarvin Borner2020-08-21 20:39:48 +0200
committerMarvin Borner2020-08-21 20:39:48 +0200
commitf700ba6668dbdb91a03b2c5aa387eb4cabae8fcd (patch)
treeb04a80efabb09c9da9726332ccd22cb5a325fe39 /libc/crt/crt0.asm
parent1339d96cea2c647991c178587008d6fc40772a78 (diff)
Some things here and some things there
Diffstat (limited to 'libc/crt/crt0.asm')
-rw-r--r--libc/crt/crt0.asm15
1 files changed, 15 insertions, 0 deletions
diff --git a/libc/crt/crt0.asm b/libc/crt/crt0.asm
new file mode 100644
index 0000000..4d473ec
--- /dev/null
+++ b/libc/crt/crt0.asm
@@ -0,0 +1,15 @@
+; MIT License, Copyright (c) 2020 Marvin Borner
+
+section .text
+
+extern main
+extern sys1
+
+global _start
+_start:
+ call main
+
+ push edi
+ push 6
+ call sys1
+ jmp $