Adds strlen()

This commit is contained in:
2025-07-05 01:45:58 +02:00
parent 3b275a6166
commit b0a3da746f
3 changed files with 50 additions and 0 deletions

View File

@@ -4,6 +4,11 @@ section .text
global exit
;----- exit(exit_code) -----;
; Exits the program with given exit code
; Return value: N/A
; Used registers:
; rax* syscall
; rdi (arg) code to exit the program with
exit:
mov rax, NR_exit
syscall