Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Nasm Win32 MessageBox

[code];;
;; To Compile:
;; Assuming you had already installed mingw gcc and nasm
;; nasm -f elf source.asm
;; gcc -o message_box.exe source.o -mwindows
;;
global _WinMain@16
extern _MessageBoxA@16

[section .data]
title db "Message",0
message db "Hellow World!",0


[section .code]
_WinMain@16:
push 0
push title
push message
push 0
call _MessageBoxA@16
ret
[/code]
Sign In or Register to comment.