disp 是有顯示功能的子程式名或某段程式的入口標號。
下例中的 disp 是子程式名:
disp PROC NEAR
ADD AL, 30H
MOV DL, AL
MOV AH, 2
INT 21H
RET
另一例中的 disp 是程式段入口標號:
cseg segment
assume cs:cseg,ds:cseg
msg db "Hello ! $"
org 200h
start: mov al,02
mov ah,0
int 10h
mov dh,12
mov dl,36
mov ah,2
disp: mov dx,seg msg
mov ds,dx
mov dx,offset msg
mov ah,9
int 21h
mov ah,4ch
cseg ends
end start
disp 是有顯示功能的子程式名或某段程式的入口標號。
下例中的 disp 是子程式名:
disp PROC NEAR
ADD AL, 30H
MOV DL, AL
MOV AH, 2
INT 21H
RET
另一例中的 disp 是程式段入口標號:
cseg segment
assume cs:cseg,ds:cseg
msg db "Hello ! $"
org 200h
start: mov al,02
mov ah,0
int 10h
mov dh,12
mov dl,36
mov ah,2
int 10h
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