are these anything

This commit is contained in:
Sami Samhuri 2026-06-18 06:43:36 -07:00
parent a12bdafde4
commit a6ee3fa37d
No known key found for this signature in database
2 changed files with 18 additions and 0 deletions

9
linux.asm Normal file
View file

@ -0,0 +1,9 @@
BITS 32
GLOBAL _start
SECTION .data
SECTION .bss
SECTION .text
_start:
mov ebx, 42
mov eax, 1 ; _exit syscall
int 0x80 ; call Linux

9
test.asm Normal file
View file

@ -0,0 +1,9 @@
BITS 32
GLOBAL _main
SECTION .data
SECTION .bss
SECTION .text
_main:
mov eax, 42
;; The result in eax is the exit code, just return.
ret