data segment
string db `hello world`
len equ $-string
data ends
code segment
assume cs:code,ds:data
start:mov ax,data
mov ds,ax
mov cx,len
mov si,0
mov ah,02
next:mov dl,string[si]
int 21h
inc si
loop next
mov ah,4ch
int 21
code ends
end start
ITMISS
当年话下
相关分类