40 lines
319 B
ArmAsm
40 lines
319 B
ArmAsm
.intel_syntax noprefix
|
|
|
|
.global write
|
|
.global read
|
|
.global fork
|
|
.global execve
|
|
.global real_waitid
|
|
.global _exit
|
|
|
|
write:
|
|
mov rax, 1
|
|
syscall
|
|
ret
|
|
|
|
read:
|
|
mov rax, 0
|
|
syscall
|
|
ret
|
|
|
|
execve:
|
|
mov rax, 59
|
|
syscall
|
|
ret
|
|
|
|
|
|
fork:
|
|
mov rax, 57
|
|
syscall
|
|
ret
|
|
|
|
real_waitid:
|
|
mov rax, 247
|
|
mov r10, rcx
|
|
syscall
|
|
ret
|
|
|
|
_exit:
|
|
mov rax, 60
|
|
syscall
|