From a6ee3fa37dbbc0ea0931644e81cb63b44fe7a5ee Mon Sep 17 00:00:00 2001 From: Sami Samhuri Date: Thu, 18 Jun 2026 06:43:36 -0700 Subject: [PATCH] are these anything --- linux.asm | 9 +++++++++ test.asm | 9 +++++++++ 2 files changed, 18 insertions(+) create mode 100644 linux.asm create mode 100644 test.asm diff --git a/linux.asm b/linux.asm new file mode 100644 index 0000000..54c985b --- /dev/null +++ b/linux.asm @@ -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 diff --git a/test.asm b/test.asm new file mode 100644 index 0000000..cd6bec3 --- /dev/null +++ b/test.asm @@ -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