Nasm Win32 MessageBox

;; 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]
push 0
push title
push message
push 0
call _MessageBoxA@16
Sign In or Register to comment.

Howdy, Stranger!

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