asm_dip/toolchain/fasmw17332/EXAMPLES/HELLO/HELLO.ASM

19 lines
419 B
NASM
Raw Normal View History

2024-11-24 20:13:28 -08:00
; example of simplified Windows programming using complex macro features
include 'win32ax.inc' ; you can simply switch between win32ax, win32wx, win64ax and win64wx here
.code
start:
invoke MessageBox,HWND_DESKTOP,"May I introduce myself?",invoke GetCommandLine,MB_YESNO
.if eax = IDYES
invoke MessageBox,HWND_DESKTOP,"Hi! I'm the example program!","Hello!",MB_OK
.endif
invoke ExitProcess,0
.end start