Hello world!

November 10, 2007 at 6:58 pm (Uncategorized)

.586
.model flat,stdcall
option casemap:none
include \masm32\include\kernel32.inc
include \masm32\include\user32.inc
include \masm32\include\windows.inc

includelib \masm32\lib\kernel32.lib
includelib \masm32\lib\user32.lib

.data
sample db “hello world!”,0

.code
start:
xor eax,eax
push eax
push offset sample
push offset sample
push eax
call MessageBoxA
ret
end start

 

2 Comments

  1. aspirine said,

    Hello dude , i am just wandering about this code , what it’s doing.
    and how do you transform it into a executable file?
    Thanks a lot for your help.
    aspirine

  2. fakedminded said,

    http://www.masm32.com/ –this will help you

Post a Comment