JustOS/progs/sys.S
justuser 02e73b8cd9 up
2025-01-24 17:00:19 +03:00

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