include windows.inc include user32.inc includelib user32.lib
data segment hello db 'Welcome to Win32!',0 caption db 'Win32汇编',0 data ends code segment start: push MB_OK+MB_ICONINFORMATION push offset caption push offset hello push NULL call MessageBox ret code ends end start
.386 .model small option casemap:none
data segment hello db 0ah,0dh,'Welcome to Dos!$' data ends code segment start: mov ax,data mov ds,ax xor dx,dx mov dx,offset hello mov ah,9 int 21h mov ax,4c00h int 21h code ends end start