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