Files
nub-lang/src/runtime/platform/x64.s
nub31 9f20e71740 ...
2025-06-26 13:59:02 +02:00

21 lines
312 B
ArmAsm

.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:
mov rax, 60
syscall