repo.or.cz
/
HelloWorld.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge commit 'repo.or.cz/mob'
[HelloWorld.git]
/
linux-x86.nasm
blob
0294017af211463857d4a4929b841d4e193a107b
1
# nasm linux-x86.nasm -o linux-x86.o -f elf && ld linux-x86.o -m elf_i386 -o linux-x86
2
3
section .data
4
msg db "Hello World", 0xa
5
len equ $ - msg
6
7
section .text
8
global _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