...
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user