.386 .model flat, stdcall option casemap :none include \masm32\include\windows.inc include \masm32\include\kernel32.inc include \masm32\include\user32.inc includelib \masm32\lib\kernel32.lib includelib \masm32\lib\user32.lib print_string PROTO hello:DWORD .data hell db"Hello There!", 0ah, 0 hStd dd ? .code print_string PROC hello:DWORD invoke GetStdHandle, STD_OUTPUT_HANDLE MOV hStd, EAX invoke WriteConsole, hStd, hello, sizeof hello, ebx, NULL print_string ENDP start: push offset hell call print_string invoke ExitProcess, 0 end start
start: push offset hell call print_string