;編程:在屏幕的5行12列顯示字符串‘Wlcome to masm!'
assume cs:code
data segment
db 'welcome to masm!','$'
data ends
code segment
start:mov ah,2 ;調用第10號中斷例程的2號子程序,功能爲設置光標位置
mov bh,0
mov dh,5
mov dl,12
int 10h
mov ax,data
mov ds,ax
mov dx,0 ;ds:dx指向字符串首地址data:0
mov ah,9 ;調用第10號中斷例程的9號子程序,功能爲在光標位置顯示字符串
int 21h
mov ah,4ch ;調用第21h號中斷例程的4ch號子程序,功能爲程序返回
mov al,0
int 21h
code ends
end start