data segment
data ends
code segment
assume cs:code,ds:data
start:
mov ax,data
mov ds,ax
mov dl,48h;把要输出的内容送入到dl中
mov ah,02 ;表示打印dl中的内容
int 21h
mov dl,10 ;表示打印一个换行符
int 21h
mov dl,03
int 21h
mov ah,4ch ; 使得程序结束
int 21h
code ends
end start
汇编之简单地打印内容
最新推荐文章于 2024-02-12 10:30:00 发布