这是弹出一个最简单的消息框:
.model flat,stdcall option casemap:none include windows.inc include kernel32.inc include user32.inc includelib kernel32.lib includelib user32.lib .data szCaption db 44h,6ch,67h,4dh,73h,67h,0;此处用十六进制的ASCII码表示DlgMsg szText db 'Hello win32 asm!',0 .code main proc invoke MessageBox,NULL,addr szText,addr szCaption,MB_OK ret main endp start: call main invoke ExitProcess,NULL end start