summaryrefslogtreecommitdiff
path: root/jefs.s
diff options
context:
space:
mode:
Diffstat (limited to 'jefs.s')
-rw-r--r--jefs.s9
1 files changed, 8 insertions, 1 deletions
diff --git a/jefs.s b/jefs.s
index 1919416..d698f13 100644
--- a/jefs.s
+++ b/jefs.s
@@ -1,7 +1,14 @@
; jewelforth
+
+;; syscall
+%assign __NR_read 0
+%assign __NR_write 1
+%assign __NR_brk 12
+%assign __NR_exit 60
+
section .text
global _start
_start:
mov rdi, 0
- mov rax, 60
+ mov rax, __NR_exit
syscall