Load raw C binary + docs

This commit is contained in:
2026-05-08 12:38:16 +02:00
parent 9a1a0e428a
commit eb8a03facd
10 changed files with 169 additions and 50 deletions
+18
View File
@@ -0,0 +1,18 @@
bits 64
global _start
extern main
section .text
; Begin the program with main() function
_start:
call main
; Exit the program by exit() syscall
.exit:
mov rdi, rax ; put the value of "return X;" (rax) as arg1 (error_code)
mov rax, 60 ; sys_exit
int 0x80
.loop:
jmp .loop