diff options
| author | kitty <nepeta@canaglie.net> | 2026-01-20 19:20:31 +1100 |
|---|---|---|
| committer | kitty <nepeta@canaglie.net> | 2026-01-20 19:20:31 +1100 |
| commit | c4de43c154eb3ff9e1eacb90e29a046b9c0a8428 (patch) | |
| tree | 107b3be8c54bf6840a1a7b45e396d01600c67505 /jefs.s | |
| parent | 458a0aa9dcf86c0976027893c9c5f1ebe933c53f (diff) | |
syscall macros
Diffstat (limited to 'jefs.s')
| -rw-r--r-- | jefs.s | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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 |
