微机原理程序中disp是什么意思

2024-12-03 06:41:00
微机原理程序中disp是什么意思求高手给解答
写回答

最佳答案

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

2024-12-03 06:41:00
赞 9956踩 0

全部回答(1)