Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
32 lines (22 sloc) 323 Bytes
bits 32
section .data
stdout equ 1
sys_write equ 4
sys_exit equ 1
kernel equ 80h
msg db "Hello World!", 10
len equ $-msg
section .text
global start
start:
push len
push msg
push stdout
mov eax, sys_write
sub esp, 4
int kernel
add esp, 4 + 4 * 3
push 0
mov eax, sys_exit
sub esp, 4
int kernel