Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added x86 linux assembler (nasm syntax)

  • Loading branch information...
commit 362cd93825f7b5c2442855babea3d695bf5fc5c0 1 parent 9cbc51a
Robert Wohlrab authored
Showing with 18 additions and 0 deletions.
  1. +18 −0 linux-x86.nasm
View
18 linux-x86.nasm
@@ -0,0 +1,18 @@
+# nasm linux-x86.nasm -o linux-x86.o -f elf && ld linux-x86.o -m elf_i386 -o linux-x86
+
+section .data
+msg db "Hello World", 0xa
+len equ $ - msg
+
+section .text
+global _start
+_start:
+ mov eax, 4
+ mov ebx, 1
+ mov ecx, msg
+ mov edx, len
+ int 0x80
+
+ mov eax, 1
+ mov ebx, 0
+ int 0x80
Please sign in to comment.
Something went wrong with that request. Please try again.