data segment
str db 'Hello,World!','$'
data ends
code segment
assume cs:code,ds:data
start:
mov ax,data
mov ds,ax
mov dx,offset str
mov ah,09h
int 21h
mov ah,01h
int 21h
mov ah,4ch
int 21h
code ends
end start
本文介绍了一个简单的汇编语言程序,该程序用于在屏幕上显示“Hello, World!”消息,并接收用户输入的一个字符。程序使用INT 21h中断来显示字符串和获取键盘输入。
5373

被折叠的 条评论
为什么被折叠?



