屏幕输出语句 hello world!

代码

stack segment
stack ends

data segment
string db 'hello world! $'
data ends

code segment
assume cs:code,ds:data,ss:stack
start:

mov ax,data
mov ds,ax

mov dx,offset string ;或者是 lea dx,string

mov ah,09h
int 21h

mov ax,4c00h
int 21h

code ends
end start

结果

汇编语言--屏幕输出语句 hello world!_汇编语言