21 lines
312 B
ArmAsm
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
|