PageRenderTime 7ms CodeModel.GetById 1ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/l/linux-x86.nasm

http://github.com/AdamHarte/hello-world
Unknown | 18 lines | 15 code | 3 blank | 0 comment | 0 complexity | 44a96f6963b4b28b66a48f83082a6ca6 MD5 | raw file
 1# nasm linux-x86.nasm -o linux-x86.o -f elf && ld linux-x86.o -m elf_i386 -o linux-x86
 2
 3section .data
 4msg     db      "Hello World", 0xa
 5len     equ     $ - msg
 6
 7section .text
 8global _start
 9_start:
10	mov     eax, 4
11	mov     ebx, 1
12	mov     ecx, msg
13	mov     edx, len
14	int     0x80
15	
16	mov     eax, 1
17	mov     ebx, 0
18	int     0x80