This commit is contained in:
nub31
2025-06-27 15:55:32 +02:00
parent d9027d6751
commit 19c309c494
20 changed files with 159 additions and 232 deletions

View File

@@ -1,20 +1,9 @@
.intel_syntax noprefix
.text
.globl nub_write_string
# void nub_write_string(const char* str)
nub_write_string:
push rdi
call nub_cstring_length
mov rdx, rax
pop rsi
mov rax, 1
mov rdi, 1
syscall
.text
.globl nub_exit
# void nub_exit(int code)
nub_exit:
.globl _start
_start:
mov rdi, rsp
call main
mov rax, 60
syscall