disp是有显示功能的子程序名或某段程序的入口标号。
下例中的 disp 是子程序名:
disp PROCNEAR
ADD AL, 30H
MOV DL, AL
MOV AH, 2
INT 21H
RET
另一例中的 disp 是程序段入口标号:
csegsegment
assumecs:cseg,ds:cseg
msgdb
"Hello ! $
"
org200h
start:moval,02
movah,0
int10h
movdh,12
movdl,36
movah,2
int10h
disp: mov dx,seg msg
mov ds,dx
mov dx,offset msg
mov ah,9
int 21h
mov ah,4ch
int 21h
cseg ends
end start