全站数据
8 4 2 0 5 8 1

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

建造师说 | 简单学习,快乐成才!         
问题更新日期:2024-10-13 12:20:13

问题描述

微机原理程序中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

随机推荐